|
@@ -4,11 +4,7 @@ import type { NamePath } from 'ant-design-vue/lib/form/interface';
|
|
|
import { unref, toRaw, nextTick } from 'vue';
|
|
|
import { isArray, isFunction, isObject, isString, isDef, isNil } from '@/utils/is';
|
|
|
import { deepMerge } from '@/utils';
|
|
|
-import {
|
|
|
- dateItemType,
|
|
|
- defaultValueComponents,
|
|
|
- isIncludeSimpleComponents,
|
|
|
-} from '../helper';
|
|
|
+import { dateItemType, defaultValueComponents, isIncludeSimpleComponents } from '../helper';
|
|
|
import { dateUtil } from '@/utils/dateUtil';
|
|
|
import { cloneDeep, has, uniqBy, get } from 'lodash-es';
|
|
|
import { error } from '@/utils/log';
|
|
@@ -76,7 +72,7 @@ export function useFormEvents({
|
|
|
const validKeys: string[] = [];
|
|
|
fields.forEach((key) => {
|
|
|
const schema = unref(getSchema).find((item) => item.field === key);
|
|
|
- let value = get(values, key);
|
|
|
+ const value = get(values, key);
|
|
|
const hasKey = has(values, key);
|
|
|
const { componentProps } = schema || {};
|
|
|
let _props = componentProps as any;
|