Skip to content
New issue

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

如何手动出触发 form.array 表单中的某一项校验 #6199

Closed
1455287434 opened this issue Jun 7, 2023 · 2 comments
Closed

如何手动出触发 form.array 表单中的某一项校验 #6199

1455287434 opened this issue Jun 7, 2023 · 2 comments
Labels

Comments

@1455287434
Copy link

Version of antd-mobile

No response

What is this feature about?

No response

@1587315093
Copy link
Contributor

1587315093 commented Jun 12, 2023

form.validateFields([""]); 传入需要校验的字段名,而这个form 实例则需要你使用 ref 与 useFrom 获取

image

@1455287434
Copy link
Author

image
手动校验这种带index的name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants