voidfield初始display为hidden的问题 #4009
Unanswered
object-kaz
asked this question in
Q&A [2.x]
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
formily的VoidField如果display初始值为hidden,这时候VoidField里面的组件都不渲染,form graph里面没有对应的字段,无法访问内部field状态,同时field里面的初始值也不生效了。
示例代码:
sandbox:https://codesandbox.io/s/cold-sun-t9glql?file=/App.tsx
在初始场景时字段void的display值为hidden,不渲染任何内容,这时候里面的input也不渲染,field的状态无法获取,默认值1234也不生效。
Beta Was this translation helpful? Give feedback.
All reactions