-
如 codesandebox: https://codesandbox.io/s/great-https-v52lf?file=/App.tsx:1056-1103 还有一个思路:依赖字段设置 dependencies,同样无法触发(https://codesandbox.io/s/great-https-v52lf?file=/App.tsx:679-739),还是需要指定字段比如 string_array.0.x,但是场景是需要从 string_array 中的 min 和 max 来判断,这里有提到深度 clone,但是没有找到可以重制内容的 hook |
Beta Was this translation helpful? Give feedback.
Answered by
janryWang
Aug 1, 2021
Replies: 1 comment 3 replies
-
ArrayField操作是引用操作,不是赋值操作,所以是监听不到变化的,你可以用onFieldInputValueChange |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
janryWang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ArrayField操作是引用操作,不是赋值操作,所以是监听不到变化的,你可以用onFieldInputValueChange