mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-01 19:57:48 +08:00
Form: callback of validateField should be optional (#17314)
This commit is contained in:
parent
ed73a1bef9
commit
5558398411
4
types/form.d.ts
vendored
4
types/form.d.ts
vendored
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user