Sfoglia il codice sorgente

fix: 表单设计 form 表单 点击active 修复

lanceJiang 1 anno fa
parent
commit
6f8273c623
1 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6 6
      src/components/FormCreateDesigner/FcDesigner.vue

+ 6 - 6
src/components/FormCreateDesigner/FcDesigner.vue

@@ -741,7 +741,7 @@ export default defineComponent({
 				if (!data.activeRule || data.validateForm.api[data.activeRule._id] !== data.activeRule) return
 				data.activeRule.validate = formData.validate || []
 				data.dragForm.api.refreshValidate()
-				data.dragForm.api.nextTick()()()()()()()()()()(() => {
+        data.dragForm.api.nextTick(() => {
 					data.dragForm.api.clearValidateState(data.activeRule.__fc__.id)
 				})
 			},
@@ -802,7 +802,7 @@ export default defineComponent({
 					}
 					data.validateForm.value = { validate: rule.validate ? [...rule.validate] : [] }
 					data.dragForm.api.refreshValidate()
-					data.dragForm.api.nextTick()()()()()()()()()()(() => {
+          data.dragForm.api.nextTick(() => {
 						data.dragForm.api.clearValidateState(rule.__fc__.id)
 					})
 				}
@@ -1036,10 +1036,10 @@ export default defineComponent({
 		}
 		data.dragForm.rule = methods.makeDragRule(methods.makeChildren(data.children))
 
-		defineExpose({
-			initForm: methods.initForm,
-			saveFormJson: methods.showJson
-		})
+		// defineExpose({
+		// 	initForm: methods.initForm,
+		// 	saveFormJson: methods.showJson
+		// })
 		return {
 			editorRef,
 			...toRefs(data),