Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
3319846e
Commit
3319846e
authored
Jun 27, 2018
by
Zoron
Committed by
Jikkai Xiao
Jun 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Form: fix a typo in docs (#11765)
line 412: `...并 Form-Item 的...` -->> `...并将 Form-Item 的...`
parent
fd4af1a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/docs/zh-CN/form.md
examples/docs/zh-CN/form.md
+1
-1
No files found.
examples/docs/zh-CN/form.md
View file @
3319846e
...
...
@@ -409,7 +409,7 @@ W3C 标准中有如下[规定](https://www.w3.org/MarkUp/html-spec/html-spec_8.h
在防止用户犯错的前提下,尽可能让用户更早地发现并纠正错误。
:::demo Form 组件提供了表单验证的功能,只需要通过
`rules`
属性传入约定的验证规则,并 Form-Item 的
`prop`
属性设置为需校验的字段名即可。校验规则参见
[
async-validator
](
https://github.com/yiminghe/async-validator
)
:::demo Form 组件提供了表单验证的功能,只需要通过
`rules`
属性传入约定的验证规则,并
将
Form-Item 的
`prop`
属性设置为需校验的字段名即可。校验规则参见
[
async-validator
](
https://github.com/yiminghe/async-validator
)
```
html
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"活动名称"
prop=
"name"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment