Skip to content

Commit 1ea4784

Browse files
committed
docs: update form docs
1 parent 8875673 commit 1ea4784

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

components/form/index.en-US.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,11 @@ After wrapped by `getFieldDecorator`, `value`(or other property defined by `valu
119119
| options.initialValue | You can specify initial value, type, optional value of children node. (Note: Because `Form` will test equality with `===` internaly, we recommend to use vairable as `initialValue`, instead of literal) | | n/a |
120120
| options.normalize | Normalize value to form component, [a select-all example](https://codesandbox.io/s/kw4l2vqqmv) | function(value, prevValue, allValues): any | - |
121121
| options.rules | Includes validation rules. Please refer to "Validation Rules" part for details. | object\[] | n/a |
122-
| options.trigger | When to collect the value of children node | string | 'onChange' |
122+
| options.trigger | When to collect the value of children node | string | 'change' |
123123
| options.validateFirst | Whether stop validate on first rule of error for this field. | boolean | false |
124-
| options.validateTrigger | When to validate the value of children node. | string\|string\[] | 'onChange' |
124+
| options.validateTrigger | When to validate the value of children node. | string\|string\[] | 'change' |
125125
| options.valuePropName | Props of children node, for example, the prop of Switch is 'checked'. | string | 'value' |
126126

127-
More option can be referenced at [rc-form option](https://github.com/react-component/form#option-object)
128-
129127
### Form.Item
130128

131129
Note:

components/form/index.zh-CN.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,11 @@ CustomizedForm = Form.create({})(CustomizedForm);
118118
| options.initialValue | 子节点的初始值,类型、可选值均由子节点决定(注意:由于内部校验时使用 `===` 判断是否变化,建议使用变量缓存所需设置的值而非直接使用字面量)) | | |
119119
| options.normalize | 转换默认的 value 给控件,[一个选择全部的例子](https://codesandbox.io/s/kw4l2vqqmv) | function(value, prevValue, allValues): any | - |
120120
| options.rules | 校验规则,参考下方文档 | object\[] | |
121-
| options.trigger | 收集子节点的值的时机 | string | 'onChange' |
121+
| options.trigger | 收集子节点的值的时机 | string | 'change' |
122122
| options.validateFirst | 当某一规则校验不通过时,是否停止剩下的规则的校验 | boolean | false |
123-
| options.validateTrigger | 校验子节点值的时机 | string\|string\[] | 'onChange' |
123+
| options.validateTrigger | 校验子节点值的时机 | string\|string\[] | 'change' |
124124
| options.valuePropName | 子节点的值的属性,如 Switch 的是 'checked' | string | 'value' |
125125

126-
更多参数可参考 [rc-form option](https://github.com/react-component/form#option-object)
127-
128126
### Form.Item
129127

130128
注意:

0 commit comments

Comments
 (0)