We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
当我第一次渲染 Form.Array 只有一条数据的时候 我是想给删除按钮禁用掉,当我进行form.getFieldsValue().contacts.length 进行判断的时候 发现值好像并没有更新
The text was updated successfully, but these errors were encountered:
推荐用 useWatch
useWatch
const [form] = Form.useForm<FieldType>() const contacts = Form.useWatch('contacts', form) console.log(contacts.length)
Sorry, something went wrong.
请问最后是怎么解决的呢?
No branches or pull requests
Version of antd-mobile
No response
Description
当我第一次渲染 Form.Array 只有一条数据的时候 我是想给删除按钮禁用掉,当我进行form.getFieldsValue().contacts.length 进行判断的时候 发现值好像并没有更新
The text was updated successfully, but these errors were encountered: