Skip to content

Commit

Permalink
fix(BasicForm): type instantiation is excessively deep and possibly i…
Browse files Browse the repository at this point in the history
…nfinite. (#3128)
  • Loading branch information
likui628 authored Oct 10, 2023
1 parent 30b3ee5 commit 5a388be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/Form/src/BasicForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -83,15 +82,15 @@
const defaultValueRef = ref({});
const isInitedDefaultRef = ref(false);
const propsRef = ref<Partial<FormProps>>({});
const propsRef = ref<Partial<FormProps>>();
const schemaRef = ref<FormSchema[] | null>(null);
const formElRef = ref<FormActionType | null>(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(() => {
Expand Down

0 comments on commit 5a388be

Please sign in to comment.