mirror of
				https://github.com/vform666/variant-form3-vite.git
				synced 2025-10-31 16:51:49 +08:00 
			
		
		
		
	修复H5/Pad模式预览时表单高度溢出窗口的问题。
This commit is contained in:
		| @@ -66,6 +66,7 @@ | |||||||
|             <el-button @click="showPreviewDialogFlag = false">{{i18nt('designer.hint.closePreview')}}</el-button> |             <el-button @click="showPreviewDialogFlag = false">{{i18nt('designer.hint.closePreview')}}</el-button> | ||||||
|             <el-button v-if="false" @click="testLoadForm">Test Load</el-button> |             <el-button v-if="false" @click="testLoadForm">Test Load</el-button> | ||||||
|             <el-button v-if="false" @click="testSetFormJson">Test SFJ</el-button> |             <el-button v-if="false" @click="testSetFormJson">Test SFJ</el-button> | ||||||
|  |             <el-button v-if="false" @click="testSetFormData">Test SFD</el-button> | ||||||
|           </div> |           </div> | ||||||
|         </template> |         </template> | ||||||
|       </el-dialog> |       </el-dialog> | ||||||
| @@ -638,6 +639,13 @@ | |||||||
|         }) |         }) | ||||||
|       }, |       }, | ||||||
|  |  | ||||||
|  |       testSetFormData() { | ||||||
|  |         let testFD = { | ||||||
|  |           "input89263": "899668" | ||||||
|  |         } | ||||||
|  |         this.$refs.preForm.setFormData(testFD) | ||||||
|  |       }, | ||||||
|  |  | ||||||
|       handleFormChange(fieldName, newValue, oldValue, formModel) { |       handleFormChange(fieldName, newValue, oldValue, formModel) { | ||||||
|         /* |         /* | ||||||
|         console.log('---formChange start---') |         console.log('---formChange start---') | ||||||
| @@ -647,6 +655,8 @@ | |||||||
|         console.log('formModel', formModel) |         console.log('formModel', formModel) | ||||||
|         console.log('---formChange end---') |         console.log('---formChange end---') | ||||||
|         */ |         */ | ||||||
|  |  | ||||||
|  |         console.log('formModel', formModel) | ||||||
|       }, |       }, | ||||||
|  |  | ||||||
|       testOnAppendButtonClick(clickedWidget) { |       testOnAppendButtonClick(clickedWidget) { | ||||||
| @@ -777,6 +787,8 @@ | |||||||
|     //border-width: 10px; |     //border-width: 10px; | ||||||
|     box-shadow: 0 0 1px 10px #495060; |     box-shadow: 0 0 1px 10px #495060; | ||||||
|     height: calc(100vh - 175px); |     height: calc(100vh - 175px); | ||||||
|  |     overflow-y: auto; | ||||||
|  |     overflow-x: hidden; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .form-render-wrapper.pad-layout { |   .form-render-wrapper.pad-layout { | ||||||
| @@ -786,6 +798,8 @@ | |||||||
|     //border-width: 10px; |     //border-width: 10px; | ||||||
|     box-shadow: 0 0 1px 10px #495060; |     box-shadow: 0 0 1px 10px #495060; | ||||||
|     height: calc(100vh - 175px); |     height: calc(100vh - 175px); | ||||||
|  |     overflow-y: auto; | ||||||
|  |     overflow-x: hidden; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .node-tree-drawer { |   .node-tree-drawer { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user