We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed73a1b commit 5558398Copy full SHA for 5558398
types/form.d.ts
@@ -72,11 +72,11 @@ export declare class ElForm extends ElementUIComponent {
72
* @param props The property of `model` or array of prop which is going to validate
73
* @param callback A callback to tell the field validation result
74
*/
75
- validateField (props: string | string[], callback: ValidateFieldCallback): void
+ validateField (props: string | string[], callback?: ValidateFieldCallback): void
76
77
/** reset all the fields and remove validation result */
78
resetFields (): void
79
-
+
80
/** clear validation message for certain fields */
81
clearValidate (props?: string | string[]): void
82
}
0 commit comments