浏览代码

From: Complete the form component prop field description (#4890)

* dropdown 组件 新增触发下拉框显示隐藏时, 触发visible事件,传递当前下拉框显示状态

* Dropdown 修改事件名称,新增文档

* Dropdown 统一事件名称,修改文档

* Dropdown 统一事件名称,修改文档

* 完善form表单prop字段介绍
luciy 8 年之前
父节点
当前提交
b124944dd8
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/docs/en-US/form.md
  2. 1 1
      examples/docs/zh-CN/form.md

+ 1 - 1
examples/docs/en-US/form.md

@@ -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 |

+ 1 - 1
examples/docs/zh-CN/form.md

@@ -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 |