From 57e64dc975f321a856709ed0c79d2d41e20e3a07 Mon Sep 17 00:00:00 2001 From: dolymood Date: Mon, 17 Feb 2020 16:47:10 +0800 Subject: [PATCH] docs(form): add key and submitAlwaysValidate doc --- document/components/docs/en-US/form.md | 2 ++ document/components/docs/zh-CN/form.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/document/components/docs/en-US/form.md b/document/components/docs/en-US/form.md index 9b582c0d..029e4a88 100644 --- a/document/components/docs/en-US/form.md +++ b/document/components/docs/en-US/form.md @@ -356,6 +356,7 @@ CubeForm is a schema-based form generator component. | immediateValidate | If true, we will run validation after load | Boolean | true/false | false | | action | Form action value | String | - | undefined | | options | Options for CubeForm | Object | - | {
scrollToInvalidField: false,
layout: 'standard' // or: classic|fresh
} | +| submitAlwaysValidate1.12.36+ | If true, we will always validate all fields when submit | Boolean | true/false | false | - `schema` sub configuration @@ -425,6 +426,7 @@ CubeForm is a schema-based form generator component. | trigger1.8.0+ | If set to 'blur' then will be validate this filed when blur | String | blur/change | - | | debounce1.8.0+ | 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) | - | | messages | Validator messages, see Validator | String | - | - | + | key1.12.36+ | field union key | String | - | - | - `options` sub configuration diff --git a/document/components/docs/zh-CN/form.md b/document/components/docs/zh-CN/form.md index 06b6c273..5999447b 100644 --- a/document/components/docs/zh-CN/form.md +++ b/document/components/docs/zh-CN/form.md @@ -356,6 +356,7 @@ | immediateValidate | 初始化时是否立即校验 | Boolean | true/false | false | | action | 表单 Form action 的值 | String | - | undefined | | options | 配置项 | Object | - | {
scrollToInvalidField: false,
layout: 'standard' // or: classic|fresh
} | +| submitAlwaysValidate1.12.36+ | 提交表单时是否总校验所有字段 | Boolean | true/false | false | - `schema` 子配置项 @@ -425,6 +426,7 @@ | trigger1.8.0+ | 如果设置为 'blur' 那么则会在离焦后校验 | String | blur/change | - | | debounce1.8.0+ | 控制校验节奏,值为时间,单位 ms。如果 trigger 设置为 blur 则此项配置不生效 | Number/Boolean | >= 0,如果设置为 true,那么时间就是 200(ms) | - | | messages | 字段的校验消息,参见 Validator | String | - | - | + | key1.12.36+ | 字段的唯一key,尤其适用在 schema 更新的场景中 | String | - | - | - `options` 子配置项 -- GitLab