Skip to content

Commit 4cd186d

Browse files
committed
docs(form): add submit event detail - prevent default behaviour
1 parent 7ee0713 commit 4cd186d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ CubeForm is a schema-based form generator component.
443443

444444
| Event Name | Description | Parameters 1 | Parameters 2 |
445445
| - | - | - | - |
446-
| submit | Form submit, only trigged when the form's validation is ok | e - event | form model value |
446+
| 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 |
447447
| reset | Form reset | e - event | - |
448448
| validate | Form validated | Properties: <br>{<br>validity,<br> valid,<br> invalid,<br> dirty,<br> firstInvalidFieldIndex<br>} | - |
449449
| valid | Form valid | Validity result | - |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@
443443

444444
| 事件名 | 说明 | 参数1 | 参数2 |
445445
| - | - | - | - |
446-
| submit | 表单校验通过后触发此事件 | e - 事件对象 | model 值 |
446+
| submit | 表单校验通过后触发此事件,如果只有同步校验,则不会阻止默认行为,而如果包含了异步校验,则默认就会阻止默认行为 | e - 事件对象 | model 值 |
447447
| reset | 表单重置事件 | e - 事件对象 | - |
448448
| validate | 表单校验事件 | 参数结构如下:<br>{<br>validity,<br> valid,<br> invalid,<br> dirty,<br> firstInvalidFieldIndex<br>} | - |
449449
| valid | 表单校验成功触发 | validity 校验结果 | - |

0 commit comments

Comments
 (0)