From 106750ed62323dac16324f532b8ddd030fe97562 Mon Sep 17 00:00:00 2001
From: cc hearts <71313168+cc-hearts@users.noreply.github.com>
Date: Wed, 30 Aug 2023 15:35:20 +0800
Subject: [PATCH] docs[FormItem]: update FormItem name attribute type (#6897)
---
components/form/index.en-US.md | 2 +-
components/form/index.zh-CN.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md
index 12a75f211..14c7c68cb 100644
--- a/components/form/index.en-US.md
+++ b/components/form/index.en-US.md
@@ -84,7 +84,7 @@ A form consists of one or more form fields whose type includes input, textarea,
| label | Label text | string\|slot | | |
| labelAlign | text align of label | 'left' \| 'right' | 'right' | |
| 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 `
` | [object](/components/grid/#col) | | |
-| name | a key of `model`. In the use of validate and resetFields method, the attribute is required | string | | 2.0.0 |
+| name | a key of `model`. In the use of validate and resetFields method, the attribute is required | [NamePath](#namepath) | | 2.0.0 |
| required | Whether provided or not, it will be generated by the validation rule. | boolean | false | |
| rules | validation rules of form | object \| array | | |
| validateFirst | Whether stop validate on first rule of error for this field. | boolean | false | |
diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md
index b1c5e48f7..273887eb3 100644
--- a/components/form/index.zh-CN.md
+++ b/components/form/index.zh-CN.md
@@ -85,7 +85,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*ylFATY6w-ygAAA
| label | label 标签的文本 | string\|slot | | |
| labelAlign | 标签文本对齐方式 | 'left' \| 'right' | 'right' | |
| labelCol | label 标签布局,同 `` 组件,设置 `span` `offset` 值,如 `{span: 3, offset: 12}` 或 `sm: {span: 3, offset: 12}` | [object](/components/grid-cn/#col) | | |
-| name | 表单域 model 字段,在使用 validate、resetFields 方法的情况下,该属性是必填的 | string | | |
+| name | 表单域 model 字段,在使用 validate、resetFields 方法的情况下,该属性是必填的 | [NamePath](#namepath) | | |
| required | 是否必填,如不设置,则会根据校验规则自动生成 | boolean | false | |
| rules | 表单验证规则 | object \| array | | |
| validateFirst | 当某一规则校验不通过时,是否停止剩下的规则的校验。 | boolean | false | 2.0.0 |