From ca98327ecb95bf4fa0e02bc336e2b0f71029cf19 Mon Sep 17 00:00:00 2001 From: dolymood Date: Tue, 20 Aug 2019 20:05:12 +0800 Subject: [PATCH] docs(form): add fieldsModel doc --- document/components/docs/en-US/form.md | 14 +++++++------- document/components/docs/zh-CN/form.md | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/document/components/docs/en-US/form.md b/document/components/docs/en-US/form.md index ec229918..a9b04d14 100644 --- a/document/components/docs/en-US/form.md +++ b/document/components/docs/en-US/form.md @@ -441,13 +441,13 @@ CubeForm is a schema-based form generator component. ### Events -| Event Name | Description | Parameters 1 | Parameters 2 | -| - | - | - | - | -| submit | Form submit, only trigged when the form's validation is ok. If only have sync validators, this event will not be prevented by default. If have async validators, this event will be prevented by default. | e - event | form model value | -| reset | Form reset | e - event | - | -| validate | Form validated | Properties:
{
validity,
valid,
invalid,
dirty,
firstInvalidFieldIndex
} | - | -| valid | Form valid | Validity result | - | -| invalid | Form invalid | Validity result | - | +| Event Name | Description | Parameters 1 | Parameters 2 | Parameters 3 | +| - | - | - | - | - | +| submit | Form submit, only trigged when the form's validation is ok. If only have sync validators, this event will not be prevented by default. If have async validators, this event will be prevented by default. | e - event | form model value | form model value with only fields `modelKey`1.12.30+ | +| reset | Form reset | e - event | - | - | +| validate | Form validated | Properties:
{
validity,
valid,
invalid,
dirty,
firstInvalidFieldIndex
} | - | - | +| valid | Form valid | Validity result | - | - | +| invalid | Form invalid | Validity result | - | - | - `validate` event parameters diff --git a/document/components/docs/zh-CN/form.md b/document/components/docs/zh-CN/form.md index 46b13fe6..1585cfe9 100644 --- a/document/components/docs/zh-CN/form.md +++ b/document/components/docs/zh-CN/form.md @@ -441,13 +441,13 @@ ### 事件 -| 事件名 | 说明 | 参数1 | 参数2 | -| - | - | - | - | -| submit | 表单校验通过后触发此事件,如果只有同步校验,则不会阻止默认行为,而如果包含了异步校验,则默认就会阻止默认行为 | e - 事件对象 | model 值 | -| reset | 表单重置事件 | e - 事件对象 | - | -| validate | 表单校验事件 | 参数结构如下:
{
validity,
valid,
invalid,
dirty,
firstInvalidFieldIndex
} | - | -| valid | 表单校验成功触发 | validity 校验结果 | - | -| invalid | 表单校验失败触发 | validity 校验结果 | - | +| 事件名 | 说明 | 参数1 | 参数2 | 参数3 | +| - | - | - | - | - | +| submit | 表单校验通过后触发此事件,如果只有同步校验,则不会阻止默认行为,而如果包含了异步校验,则默认就会阻止默认行为 | e - 事件对象 | model 值 | 只包含存在的字段的 model 值1.12.30+ | +| reset | 表单重置事件 | e - 事件对象 | - | - | +| validate | 表单校验事件 | 参数结构如下:
{
validity,
valid,
invalid,
dirty,
firstInvalidFieldIndex
} | - | - | +| valid | 表单校验成功触发 | validity 校验结果 | - | - | +| invalid | 表单校验失败触发 | validity 校验结果 | - | - | - `validate` 事件的参数 -- GitLab