Skip to content

Commit 215a4d5

Browse files
committed
doc: update form typos, close #4850
1 parent 0ef6cc8 commit 215a4d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/form/demo/validation.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ title:
88

99
## zh-CN
1010

11-
Form 组件提供了表单验证的功能,只需要通过 `rules` 属性传入约定的验证规则,并将 `FormItem` 的 `prop` 属性设置为需校验的字段名即可。校验规则参见 [async-validator](https://github.com/yiminghe/async-validator)
11+
Form 组件提供了表单验证的功能,只需要通过 `rules` 属性传入约定的验证规则,并将 `FormItem` 的 `name` 属性设置为需校验的字段名即可。校验规则参见 [async-validator](https://github.com/yiminghe/async-validator)
1212

1313
## en-US
1414

15-
Just add the `rules` attribute for `Form` component, pass validation rules, and set `prop` attribute for `FormItem` as a specific key that needs to be validated. See more information at [async-validator](https://github.com/yiminghe/async-validator).
15+
Just add the `rules` attribute for `Form` component, pass validation rules, and set `name` attribute for `FormItem` as a specific key that needs to be validated. See more information at [async-validator](https://github.com/yiminghe/async-validator).
1616
</docs>
1717

1818
<template>

0 commit comments

Comments
 (0)