mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
[fixed] validate types error
根据 `form/index.js` 源码 124行, 发现types类型声明错误。在此修正。
This commit is contained in:
committed by
Herrington Darkholme
parent
58646285c7
commit
48299068e6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user