|
@@ -153,7 +153,7 @@ import { upper, useLocale } from '../../utils/formCreateIndex'
|
|
|
import { designerForm } from '../../utils/form'
|
|
|
import viewForm from '../../utils/form'
|
|
|
import { t as globalT } from '../../utils/locale'
|
|
|
-import { computed, reactive, toRefs, toRef, ref, getCurrentInstance, provide, nextTick, watch, defineComponent, markRaw } from 'vue'
|
|
|
+import { computed, reactive, toRefs, toRef, ref, getCurrentInstance, provide, nextTick, watch, defineComponent, markRaw, defineExpose } from 'vue'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'FcDesigner',
|
|
@@ -742,7 +742,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)
|
|
|
})
|
|
|
},
|
|
@@ -803,7 +803,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)
|
|
|
})
|
|
|
}
|
|
@@ -1031,9 +1031,9 @@ export default defineComponent({
|
|
|
}
|
|
|
data.dragForm.rule = methods.makeDragRule(methods.makeChildren(data.children))
|
|
|
|
|
|
- defineExpose({
|
|
|
- initForm
|
|
|
- })
|
|
|
+ defineExpose({
|
|
|
+ initForm: methods.initForm
|
|
|
+ })
|
|
|
return {
|
|
|
editorRef,
|
|
|
...toRefs(data),
|