Commit 026fd339 authored by awei.yu's avatar awei.yu Committed by 杨奕

fix types (#9242)

overload validate method
add clearValidate method
parent 6280336c
......@@ -57,8 +57,8 @@ export declare class ElForm extends ElementUIComponent {
*
* @param callback A callback to tell the validation result
*/
validate (callback?: ValidateCallback): any
validate (callback: ValidateCallback): void
validate (): Promise<boolean>
/**
* Validate a certain form item
*
......@@ -69,4 +69,7 @@ export declare class ElForm extends ElementUIComponent {
/** reset all the fields and remove validation result */
resetFields (): void
/** clear validation message for all fields */
clearValidate (): void
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment