-
Notifications
You must be signed in to change notification settings - Fork 64
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
fix: form prop rules不生效 #208
Conversation
场景?测试? |
场景:表单rules支持独立抽出来写,不冗余到content的每一个item。 像element-ui本身就支持把rules放到form内或者el-input内的。 <el-form rules="[{...}]" />
<el-input rules="[{...}]"> 测试?这个唔知咋提供测试 |
@yolofit 你好,你可以把本地测试的截图给一下吗。就是看下修改前是怎样的,修改后是怎样的,两张截图即可。 |
我额外提交了一个rules-plus.md,里面可以跑demo |
@all-contributors add @yolofit bug |
I've put up a pull request to add @yolofit! 🎉 |
合并了,不过,兄弟下次你要注意对 dev 发起合并。。。master 一合并就会发版本的。 |
Why
form rules不生效
element-ui form-items获取 rules源码
How
online demo
Describe your steps:
You may use xmind or other mind map to show you logic
Test
Show your test case
you'd better show
before
andafter
Docs
It there requires a change to the documentation?