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