src/components/form/FYForm.vue
@@ -141,8 +141,19 @@ ); //监听表单编辑状态 watch(edit, (nValue) => { emit('update:isEdit', nValue); watch( () => props.isEdit, (nV, oV) => { if (nV != oV) { edit.value = nV; } }, { immediate: true } ); watch(edit, (nV, oV) => { if (nV != oV) { emit('update:isEdit', nV); } }); defineExpose({ formObj, onSubmit, onCancel, onReset });