|
@@ -1,6 +1,6 @@
|
|
|
import { useConfig, useCore, useForm } from "../../hooks";
|
|
|
-import { isEmpty } from "lodash-es";
|
|
|
-import { onMounted, PropType, defineComponent, ref, h, reactive, inject, mergeProps } from "vue";
|
|
|
+import { isEmpty, keys } from "lodash-es";
|
|
|
+import { onMounted, PropType, defineComponent, ref, h, reactive, inject, mergeProps, watch, watchEffect } from "vue";
|
|
|
import { useApi } from "../form/helper";
|
|
|
|
|
|
export default defineComponent({
|
|
@@ -13,7 +13,7 @@ export default defineComponent({
|
|
|
},
|
|
|
props: {
|
|
|
type: Object,
|
|
|
- default: () => {}
|
|
|
+ default: () => { }
|
|
|
},
|
|
|
|
|
|
// 表单值
|
|
@@ -115,6 +115,7 @@ export default defineComponent({
|
|
|
expose({
|
|
|
search,
|
|
|
reset,
|
|
|
+ Form,
|
|
|
...useApi({ Form })
|
|
|
});
|
|
|
|
|
@@ -129,6 +130,9 @@ export default defineComponent({
|
|
|
on: {
|
|
|
open(data) {
|
|
|
config.onLoad?.(data);
|
|
|
+ },
|
|
|
+ change(data, prop) {
|
|
|
+ config.onChange?.(data, prop)
|
|
|
}
|
|
|
}
|
|
|
});
|