Explorar o código

Merge branch 'hotfix/Form组件setFieldsValue'

shizhongming %!s(int64=2) %!d(string=hai) anos
pai
achega
a06b31d5c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/Form/src/hooks/useFormEvents.ts

+ 1 - 1
src/components/Form/src/hooks/useFormEvents.ts

@@ -90,7 +90,7 @@ export function useFormEvents({
 
       // 0| '' is allow
       if (hasKey || !!constructValue) {
-        const fieldValue = constructValue || value;
+        const fieldValue = constructValue && !isFunction(constructValue) ? constructValue : value;
         // time type
         if (itemIsDateType(key)) {
           if (Array.isArray(fieldValue)) {