如何手动触发Form.Array某一个校验项? #6341
Unanswered
SageJustus
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我的Form值结构如下:
我希望能够手动触发检验,检验
urls
数组内的所有元素的main
属性。我尝试过
form.validateFields(['main'])
与form.validateFields(['urls'])
,都不起作用。举例:校验规则是
urls
中只允许有一个元素的main=true
,因此,希望当数组内的一个元素的校验被触发,手动触发其他元素的校验。Beta Was this translation helpful? Give feedback.
All reactions