overload validate method
add clearValidate method
pull/9267/head
awei.yu 2018-01-12 15:07:49 +08:00 committed by 杨奕
parent 6280336ca2
commit 026fd339a3
1 changed files with 5 additions and 2 deletions

7
types/form.d.ts vendored
View File

@ -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
}