doc: update form typos, close #4850

pull/4861/head
tangjinzhou 2021-11-05 09:41:56 +08:00
parent 0ef6cc81b4
commit 215a4d5752
1 changed files with 2 additions and 2 deletions

View File

@ -8,11 +8,11 @@ title:
## zh-CN
Form 组件提供了表单验证的功能只需要通过 `rules` 属性传入约定的验证规则并将 `FormItem` `prop` 属性设置为需校验的字段名即可校验规则参见 [async-validator](https://github.com/yiminghe/async-validator)
Form 组件提供了表单验证的功能只需要通过 `rules` 属性传入约定的验证规则并将 `FormItem` `name` 属性设置为需校验的字段名即可校验规则参见 [async-validator](https://github.com/yiminghe/async-validator)
## en-US
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).
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).
</docs>
<template>