Commit b7ea68e6f8944b154edf1fccd3faf8744883cbd4
1 parent
ccae5cd9
fix(form): improve form props acquisition,fix #527
Showing
1 changed file
with
3 additions
and
1 deletions
src/components/Form/src/BasicForm.vue
@@ -143,7 +143,9 @@ | @@ -143,7 +143,9 @@ | ||
143 | defaultValueRef, | 143 | defaultValueRef, |
144 | }); | 144 | }); |
145 | 145 | ||
146 | - const { transformDateFunc, fieldMapToTime, autoFocusFirstItem } = toRefs(props); | 146 | + const { transformDateFunc, fieldMapToTime, autoFocusFirstItem } = toRefs( |
147 | + unref(getProps) | ||
148 | + ) as any; | ||
147 | 149 | ||
148 | const { handleFormValues, initDefault } = useFormValues({ | 150 | const { handleFormValues, initDefault } = useFormValues({ |
149 | transformDateFuncRef: transformDateFunc, | 151 | transformDateFuncRef: transformDateFunc, |