Commit b13c4a81fc7a9a008c58a48e19e5731cf31b153a

Authored by LanceJiang
Committed by GitHub
1 parent c46b04d5

fix: 由于 多路径字段获取值 (#2664) 处理 造成的 set value值为0||''时不成功的情况 (#2776)

src/components/Form/src/hooks/useFormEvents.ts
... ... @@ -113,7 +113,7 @@ export function useFormEvents({
113 113 fields.forEach((key) => {
114 114 const schema = unref(getSchema).find((item) => item.field === key);
115 115 let value = get(values, key);
116   - const hasKey = !!get(values, key);
  116 + const hasKey = Reflect.has(values, key);
117 117  
118 118 value = handleInputNumberValue(schema?.component, value);
119 119 const { componentProps } = schema || {};
... ...