Skip to content

Commit

Permalink
Form: callback of validateField should be optional (#17314)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi authored and island205 committed Oct 30, 2019
1 parent ed73a1b commit 5558398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/form.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ export declare class ElForm extends ElementUIComponent {
* @param props The property of `model` or array of prop which is going to validate
* @param callback A callback to tell the field validation result
*/
validateField (props: string | string[], callback: ValidateFieldCallback): void
validateField (props: string | string[], callback?: ValidateFieldCallback): void

/** reset all the fields and remove validation result */
resetFields (): void

/** clear validation message for certain fields */
clearValidate (props?: string | string[]): void
}

0 comments on commit 5558398

Please sign in to comment.