Skip to content

Commit 57e64dc

Browse files
committed
docs(form): add key and submitAlwaysValidate doc
1 parent 5322d64 commit 57e64dc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

document/components/docs/en-US/form.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ CubeForm is a schema-based form generator component.
356356
| immediateValidate | If true, we will run validation after load | Boolean | true/false | false |
357357
| action | Form action value | String | - | undefined |
358358
| options | Options for CubeForm | Object | - | {<br>scrollToInvalidField: false,<br> layout: 'standard' // or: classic|fresh <br>} |
359+
| submitAlwaysValidate<sup>1.12.36+</sup> | If true, we will always validate all fields when submit | Boolean | true/false | false |
359360

360361
- `schema` sub configuration
361362

@@ -425,6 +426,7 @@ CubeForm is a schema-based form generator component.
425426
| trigger<sup>1.8.0+</sup> | If set to 'blur' then will be validate this filed when blur | String | blur/change | - |
426427
| debounce<sup>1.8.0+</sup> | Debounce validating time(ms). If `trigger` is 'blur' then the debounce will be ignored | Number/Boolean | >= 0, if set to true the time will be 200(ms) | - |
427428
| messages | Validator messages, see <a href="#/en-US/docs/validator#cube-Props-anchor">Validator</a> | String | - | - |
429+
| key<sup>1.12.36+</sup> | field union key | String | - | - |
428430

429431
- `options` sub configuration
430432

document/components/docs/zh-CN/form.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@
356356
| immediateValidate | 初始化时是否立即校验 | Boolean | true/false | false |
357357
| action | 表单 Form action 的值 | String | - | undefined |
358358
| options | 配置项 | Object | - | {<br>scrollToInvalidField: false,<br> layout: 'standard' // or: classic|fresh <br>} |
359+
| submitAlwaysValidate<sup>1.12.36+</sup> | 提交表单时是否总校验所有字段 | Boolean | true/false | false |
359360

360361
- `schema` 子配置项
361362

@@ -425,6 +426,7 @@
425426
| trigger<sup>1.8.0+</sup> | 如果设置为 'blur' 那么则会在离焦后校验 | String | blur/change | - |
426427
| debounce<sup>1.8.0+</sup> | 控制校验节奏,值为时间,单位 ms。如果 trigger 设置为 blur 则此项配置不生效 | Number/Boolean | >= 0,如果设置为 true,那么时间就是 200(ms) | - |
427428
| messages | 字段的校验消息,参见 <a href="#/zh-CN/docs/validator#cube-Props-anchor">Validator</a> | String | - | - |
429+
| key<sup>1.12.36+</sup> | 字段的唯一key,尤其适用在 schema 更新的场景中 | String | - | - |
428430

429431
- `options` 子配置项
430432

0 commit comments

Comments
 (0)