Skip to content

Commit 106750e

Browse files
authored
docs[FormItem]: update FormItem name attribute type (#6897)
1 parent cac6507 commit 106750e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/form/index.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ A form consists of one or more form fields whose type includes input, textarea,
8484
| label | Label text | string\|slot | | |
8585
| labelAlign | text align of label | 'left' \| 'right' | 'right' | |
8686
| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `<Col>` | [object](/components/grid/#col) | | |
87-
| name | a key of `model`. In the use of validate and resetFields method, the attribute is required | string | | 2.0.0 |
87+
| name | a key of `model`. In the use of validate and resetFields method, the attribute is required | [NamePath](#namepath) | | 2.0.0 |
8888
| required | Whether provided or not, it will be generated by the validation rule. | boolean | false | |
8989
| rules | validation rules of form | object \| array | | |
9090
| validateFirst | Whether stop validate on first rule of error for this field. | boolean | false | |

components/form/index.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*ylFATY6w-ygAAA
8585
| label | label 标签的文本 | string\|slot | | |
8686
| labelAlign | 标签文本对齐方式 | 'left' \| 'right' | 'right' | |
8787
| labelCol | label 标签布局,同 `<Col>` 组件,设置 `span` `offset` 值,如 `{span: 3, offset: 12}``sm: {span: 3, offset: 12}` | [object](/components/grid-cn/#col) | | |
88-
| name | 表单域 model 字段,在使用 validate、resetFields 方法的情况下,该属性是必填的 | string | | |
88+
| name | 表单域 model 字段,在使用 validate、resetFields 方法的情况下,该属性是必填的 | [NamePath](#namepath) | | |
8989
| required | 是否必填,如不设置,则会根据校验规则自动生成 | boolean | false | |
9090
| rules | 表单验证规则 | object \| array | | |
9191
| validateFirst | 当某一规则校验不通过时,是否停止剩下的规则的校验。 | boolean | false | 2.0.0 |

0 commit comments

Comments
 (0)