Skip to content

Commit 3319846

Browse files
fralonrajikkai
authored andcommitted
Form: fix a typo in docs (#11765)
line 412: `...并 Form-Item 的...` -->> `...并将 Form-Item 的...`
1 parent fd4af1a commit 3319846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/docs/zh-CN/form.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ W3C 标准中有如下[规定](https://www.w3.org/MarkUp/html-spec/html-spec_8.h
409409

410410
在防止用户犯错的前提下,尽可能让用户更早地发现并纠正错误。
411411

412-
:::demo Form 组件提供了表单验证的功能,只需要通过 `rules` 属性传入约定的验证规则, Form-Item 的 `prop` 属性设置为需校验的字段名即可。校验规则参见 [async-validator](https://github.com/yiminghe/async-validator)
412+
:::demo Form 组件提供了表单验证的功能,只需要通过 `rules` 属性传入约定的验证规则,并将 Form-Item 的 `prop` 属性设置为需校验的字段名即可。校验规则参见 [async-validator](https://github.com/yiminghe/async-validator)
413413
```html
414414
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
415415
<el-form-item label="活动名称" prop="name">

0 commit comments

Comments
 (0)