docs[FormItem]: update FormItem name attribute type (#6897)
parent
cac650737c
commit
106750ed62
|
@ -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 `<Col>` | [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 | |
|
||||
|
|
|
@ -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 标签布局,同 `<Col>` 组件,设置 `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 |
|
||||
|
|
Loading…
Reference in New Issue