From 21820acafc4b32a04724f21b873502f89b3cad84 Mon Sep 17 00:00:00 2001 From: wangbincyzj <52363975+wangbincyzj@users.noreply.github.com> Date: Tue, 24 Aug 2021 09:45:51 +0800 Subject: [PATCH] Update token.ts (#3001) fix interface FormItemContext.validate wrong parameter type --- packages/form/src/token.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/form/src/token.ts b/packages/form/src/token.ts index a6d541da20d89..857be369a23a8 100644 --- a/packages/form/src/token.ts +++ b/packages/form/src/token.ts @@ -32,7 +32,7 @@ export interface ElFormItemContext { formItemMitt: Emitter size: ComponentSize validateState: string - validate(callback?: ValidateFieldCallback): void + validate(trigger: string, callback?: ValidateFieldCallback): void updateComputedLabelWidth(width: number): void addValidateEvents(): void removeValidateEvents(): void