mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-12 07:25:39 +08:00
feat: 多路径字段获取值 (#2664)
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
import { deepMerge } from '/@/utils';
|
||||
import { dateItemType, handleInputNumberValue, defaultValueComponents } from '../helper';
|
||||
import { dateUtil } from '/@/utils/dateUtil';
|
||||
import { cloneDeep, set, uniqBy } from 'lodash-es';
|
||||
import { cloneDeep, set, uniqBy, get } from 'lodash-es';
|
||||
import { error } from '/@/utils/log';
|
||||
|
||||
interface UseFormActionContext {
|
||||
@@ -112,9 +112,8 @@ export function useFormEvents({
|
||||
const validKeys: string[] = [];
|
||||
fields.forEach((key) => {
|
||||
const schema = unref(getSchema).find((item) => item.field === key);
|
||||
let value = values[key];
|
||||
|
||||
const hasKey = Reflect.has(values, key);
|
||||
let value = get(values, key);
|
||||
const hasKey = !!get(values, key);
|
||||
|
||||
value = handleInputNumberValue(schema?.component, value);
|
||||
const { componentProps } = schema || {};
|
||||
|
||||
Reference in New Issue
Block a user