diff --git a/src/components/Form/src/BasicForm.vue b/src/components/Form/src/BasicForm.vue index 89e6f4fcdad..2106d4da8ec 100644 --- a/src/components/Form/src/BasicForm.vue +++ b/src/components/Form/src/BasicForm.vue @@ -50,7 +50,6 @@ import { dateItemType } from './helper'; import { dateUtil } from '/@/utils/dateUtil'; - // import { cloneDeep } from 'lodash-es'; import { deepMerge } from '/@/utils'; import { useFormValues } from './hooks/useFormValues'; @@ -83,15 +82,15 @@ const defaultValueRef = ref({}); const isInitedDefaultRef = ref(false); - const propsRef = ref>({}); + const propsRef = ref>(); const schemaRef = ref(null); const formElRef = ref(null); const { prefixCls } = useDesign('basic-form'); // Get the basic configuration of the form - const getProps = computed((): FormProps => { - return { ...props, ...unref(propsRef) }; + const getProps = computed(() => { + return { ...props, ...unref(propsRef) } as FormProps; }); const getFormClass = computed(() => {