[fixed] validate types error

根据 `form/index.js` 源码 124行, 发现types类型声明错误。在此修正。
This commit is contained in:
Yexk_M 2021-05-03 03:33:16 +08:00 committed by Herrington Darkholme
parent 58646285c7
commit 48299068e6

View File

@ -24,7 +24,7 @@ export interface ElFormContext {
}
export interface ValidateFieldCallback {
(message?: string, invalidFields?: FieldErrorList): void
(isValid?: boolean, invalidFields?: FieldErrorList): void
}
export interface ElFormItemContext {
@ -32,7 +32,7 @@ export interface ElFormItemContext {
formItemMitt: Emitter
size: ComponentSize
validateState: string
validate(trigger?: string, callback?: ValidateFieldCallback): void
validate(callback?: ValidateFieldCallback): void
updateComputedLabelWidth(width: number): void
addValidateEvents(): void
removeValidateEvents(): void