From aa8f3edd6b188e7bdc472af9030edff8f826f77c Mon Sep 17 00:00:00 2001 From: YuShuXiao <949516815@qq.com> Date: Sat, 12 Oct 2024 15:58:22 +0800 Subject: [PATCH] docs: Modify the form submit event description error --- components/form/index.en-US.md | 2 +- components/form/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index 26dc4fe44..e3e0b1820 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -54,7 +54,7 @@ A form consists of one or more form fields whose type includes input, textarea, | --- | --- | --- | --- | --- | | finish | Trigger after submitting the form and verifying data successfully | function(values) | - | 2.0.0 | | finishFailed | Trigger after submitting the form and verifying data failed | function({ values, errorFields, outOfDate }) | - | 2.0.0 | -| submit | Defines a function will be called if form data validation is successful. | Function(e:Event) | | | +| submit | Defines a function will be called if form data is submitted successfully. | Function(e:Event) | | | | validate | triggers after a form item is validated | Function(name, status, errorMsgs) | | | ### Methods diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index bf6e74919..245e1e60a 100644 --- a/components/form/index.zh-CN.md +++ b/components/form/index.zh-CN.md @@ -55,7 +55,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*ylFATY6w-ygAAA | --- | --- | --- | --- | --- | | finish | 提交表单且数据验证成功后回调事件 | function(values) | - | 2.0.0 | | finishFailed | 提交表单且数据验证失败后回调事件 | function({ values, errorFields, outOfDate }) | - | 2.0.0 | -| submit | 数据验证成功后回调事件 | Function(e:Event) | | | | +| submit | 提交数据成功后回调事件 | Function(e:Event) | | | | | validate | 任一表单项被校验后触发 | Function(name, status, errorMsgs) | | | ### 方法