-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
useForm中的rules中某一个required为computed的时候,验证规则会生效,但是form-item的label前面的*号不会显示或隐藏 #4799
Labels
Comments
github-actions
bot
changed the title
useForm中的rules中某一个required为computed的时候,验证规则会生效,但是form-item的label前端的*号不是会显示或隐藏
When one of the required rules in the useForm is computed, the validation rules will take effect, but the * at the front end of the label of the form-item will not be displayed or hidden
Oct 23, 2021
JobinJia
changed the title
When one of the required rules in the useForm is computed, the validation rules will take effect, but the * at the front end of the label of the form-item will not be displayed or hidden
useForm中的rules中某一个required为computed的时候,验证规则会生效,但是form-item的label前面的*号不是会显示或隐藏
Oct 23, 2021
JobinJia
changed the title
useForm中的rules中某一个required为computed的时候,验证规则会生效,但是form-item的label前面的*号不是会显示或隐藏
useForm中的rules中某一个required为computed的时候,验证规则会生效,但是form-item的label前面的*号不会显示或隐藏
Oct 23, 2021
20211024_042228.mp420211024_042331.mp4fork 代码改了一份,能实现其效果。但只支持required 是ref的情况。如果rules其它字段也要支持ref ,改动量略微有些大。 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.0.0-alpha.4
Environment
mac Os catalina 10.15.4/ chrome 84.0.4147.125 (正式版本) (64 位)/ vue 3.2.20
Reproduction link
Steps to reproduce
Demo中
当表单中 Activity name 的值不为 'a' 时,Activity zone 为必填, 否则,Activity zone为非必填
What is expected?
form-item 的label前的必填符号(*) 应该正确的显示或隐藏
What is actually happening?
form-item 的label前的必填符号(*) 没有正确的显示或隐藏
The text was updated successfully, but these errors were encountered: