From 4760f13150cddf5be0d5a7ed581b38979ac6df21 Mon Sep 17 00:00:00 2001 From: virgosoy Date: Sun, 5 Feb 2023 19:59:20 +0800 Subject: [PATCH] docs(components): [form] (#11071) FormValidationResult is Promise --- docs/en-US/component/form.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en-US/component/form.md b/docs/en-US/component/form.md index f8005a7b41..dd3382d4a6 100644 --- a/docs/en-US/component/form.md +++ b/docs/en-US/component/form.md @@ -147,7 +147,7 @@ form/accessibility | Method | Description | Type | | --------------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- | -| `validate` | Validate the whole form. Receives a callback or returns `Promise`. | `(callback?: (isValid: boolean, invalidFields?: ValidateFieldsError) => void) => Promise` | +| `validate` | Validate the whole form. Receives a callback or returns `Promise`. | `(callback?: (isValid: boolean, invalidFields?: ValidateFieldsError) => void) => Promise` | | `validateField` | Validate specified fields. | `(props?: Arrayable, callback?: (isValid: boolean, invalidFields?: ValidateFieldsError) => void) => Promise` | | `resetFields` | Reset specified fields and remove validation result. | `(props?: Arrayable) => void` | | `scrollToField` | Scroll to the specified fields. | `(prop: FormItemProp) => void` |