1
|
-import DataTypeForm from './DataTypeForm.vue';
|
1
|
+import { DataTypeForm } from './DataTypeForm';
|
2
|
import { FormFieldsEnum } from './config';
|
2
|
import { FormFieldsEnum } from './config';
|
3
|
import { ObjectModelFormGetFieldsValueType } from './types';
|
3
|
import { ObjectModelFormGetFieldsValueType } from './types';
|
4
|
import { DefineComponentsBasicExpose } from '/#/utils';
|
4
|
import { DefineComponentsBasicExpose } from '/#/utils';
|
|
@@ -147,6 +147,7 @@ export const useObjectFormData = ({ |
|
@@ -147,6 +147,7 @@ export const useObjectFormData = ({ |
147
|
|
147
|
|
148
|
const resetFieldsValue = () => {
|
148
|
const resetFieldsValue = () => {
|
149
|
formActionType.resetFields();
|
149
|
formActionType.resetFields();
|
|
|
150
|
+ unref(dataTypeFormRef)?.resetFieldsValue?.();
|
150
|
};
|
151
|
};
|
151
|
|
152
|
|
152
|
return { getFieldsValue, setFieldsValue, validate, resetFieldsValue };
|
153
|
return { getFieldsValue, setFieldsValue, validate, resetFieldsValue };
|