| | |
| | | import { defineProps, onActivated, onDeactivated, ref, watch } from 'vue'; |
| | | import { defineProps, onActivated, onDeactivated, reactive, ref, watch } from 'vue'; |
| | | import { useCloned } from '@vueuse/core'; |
| | | import { useMessageBoxTip, useMessageBox } from './messageBox'; |
| | | |
| | |
| | | // }); |
| | | |
| | | //表单内容 |
| | | const formObj = ref(defaultForm ? defaultForm : {}); |
| | | const formObj = reactive(defaultForm ? defaultForm : {}); |
| | | // const formObj = reactive({}); |
| | | let formObjClone = useCloned(formObj, { manual: true }); |
| | | //表单组件引用 |
| | | const formRef = ref(null); |