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
5.29.1
No response
The text was updated successfully, but these errors were encountered:
单个字段检查失败后停止继续检查么? 有需要的话我可以贡献这个 PR
PR
Sorry, something went wrong.
需要更清晰的描述信息。
目前我有两种理解
这是不可取的,表单并非一定要按序填写,其他字段也需要独立校验,阻止整个表单并不合理 换一种思路,把你可以通过 onFinishFailed 收集提交时的错误信息,按需显示
onFinishFailed
<Form hasFeedback={false} onFinishFailed={({ values, errorFields, outOfDate })=>{ // 关闭FeedBack,自行处理 errorFields 信息 }}> </Form>
目前已有该功能,设置 validateFirst 既可
validateFirst
<Form.Item validateFirst rules={[{ required: true }, { max: 5, min: 1, type: 'number' }]}> </Form.Item>
Hi, liyoy.
It seems that this issue is a bit vague and lacks some necessary information. It is recommended to read How To Ask Questions The Smart Way.
看起来这条 issue 描述得有些模糊,缺少一些必要的信息,推荐阅读一下提问指引。
This issue will be closed automatically due to being inactive for a long time.
由于较长时间没有更新,此 issue 将自动关闭。
No branches or pull requests
Version of antd-mobile
5.29.1
What is this feature about?
No response
The text was updated successfully, but these errors were encountered: