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

[t-form] form 针对空白的校验处理,比如{required: true,trigger:'blur',whitespace:true} #1098

Closed
734839030 opened this issue Jun 28, 2022 · 4 comments · Fixed by #1110

Comments

@734839030
Copy link

这个功能解决了什么问题

当前input 校验required: true, 针对只输入空白无效

你建议的方案是什么

antdv 和element ui 的处理都是 {required: true,trigger:'blur',whitespace:true}
https://github.com/yiminghe/async-validator#whitespace

@github-actions
Copy link
Contributor

👋 @734839030,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@k1nz
Copy link
Contributor

k1nz commented Jun 29, 2022

需求已了解

@timi137137
Copy link
Contributor

@k1nz 这边在写吗?如果没有我就开PR了

@k1nz
Copy link
Contributor

k1nz commented Jun 29, 2022

@k1nz 这边在写吗?如果没有我就开PR了

@timi137137 还没有,你处理吧

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

Successfully merging a pull request may close this issue.

3 participants