mirror of https://github.com/ElemeFE/element
From: Complete the form component prop field description (#4890)
* dropdown 组件 新增触发下拉框显示隐藏时, 触发visible事件,传递当前下拉框显示状态 * Dropdown 修改事件名称,新增文档 * Dropdown 统一事件名称,修改文档 * Dropdown 统一事件名称,修改文档 * 完善form表单prop字段介绍pull/4977/head
parent
3a90003231
commit
b124944dd8
|
@ -758,7 +758,7 @@ Form component allows you to verify your data, helping you find and correct erro
|
|||
|
||||
| Attribute | Description | Type | Accepted Values | Default |
|
||||
| ---- | ----| ---- | ---- | ---- |
|
||||
| prop | a key of `model` | string | keys of model that passed to `form` |
|
||||
| prop | a key of `model`. In the use of validate and resetFields method, the attribute is required | string | keys of model that passed to `form` |
|
||||
| label | label | string | — | — |
|
||||
| label-width | width of label, e.g. '50px' | string | — | — |
|
||||
| required | whether the field is required or not, will be determined by validation rules if omitted | string | — | false |
|
||||
|
|
|
@ -746,7 +746,7 @@
|
|||
|
||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
||||
|---------- |-------------- |---------- |-------------------------------- |-------- |
|
||||
| prop | 表单域 model 字段 | string | 传入 Form 组件的 `model` 中的字段 | — |
|
||||
| prop | 表单域 model 字段,在使用 validate、resetFields 方法的情况下,该属性是必填的 | string | 传入 Form 组件的 `model` 中的字段 | — |
|
||||
| label | 标签文本 | string | — | — |
|
||||
| label-width | 表单域标签的的宽度,例如 '50px' | string | — | — |
|
||||
| required | 是否必填,如不设置,则会根据校验规则自动生成 | bolean | — | false |
|
||||
|
|
Loading…
Reference in New Issue