fix: form prop rules不生效 - #208
Merged
Merged
Conversation
Contributor
|
场景?测试? |
Contributor
Author
场景:表单rules支持独立抽出来写,不冗余到content的每一个item。 像element-ui本身就支持把rules放到form内或者el-input内的。 <el-form rules="[{...}]" />
<el-input rules="[{...}]">测试?这个唔知咋提供测试 |
snowlocked
approved these changes
Dec 31, 2020
Contributor
|
@yolofit 你好,你可以把本地测试的截图给一下吗。就是看下修改前是怎样的,修改后是怎样的,两张截图即可。 |
Contributor
Author
我额外提交了一个rules-plus.md,里面可以跑demo |
Contributor
|
@all-contributors add @yolofit bug |
Contributor
|
I've put up a pull request to add @yolofit! 🎉 |
levy9527
approved these changes
Dec 31, 2020
Contributor
|
合并了,不过,兄弟下次你要注意对 dev 发起合并。。。master 一合并就会发版本的。 |
levy9527
pushed a commit
that referenced
this pull request
Dec 31, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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
beforeandafterDocs
It there requires a change to the documentation?