mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
fix(BasicForm): type instantiation is excessively deep and possibly infinite. (#3128)
This commit is contained in:
parent
30b3ee5c89
commit
5a388be15e
@ -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<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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user