mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-12 10:45:10 +08:00
[fixed] validate types error
根据 `form/index.js` 源码 124行, 发现types类型声明错误。在此修正。
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user