type: improve form type
This commit is contained in:
parent
27f01b36a4
commit
ae2d80fbab
1 changed files with 1 additions and 1 deletions
2
types/form.d.ts
vendored
2
types/form.d.ts
vendored
|
@ -35,7 +35,7 @@ export declare class Form extends Vue {
|
|||
/**
|
||||
* 对整个表单进行校验,参数为检验完的回调,会返回一个 Boolean 表示成功与失败
|
||||
*/
|
||||
validate(callback?: (valid?: boolean) => void): void;
|
||||
validate(callback?: (valid?: boolean) => void): Promise<boolean>;
|
||||
/**
|
||||
* 对部分表单字段进行校验的方法,参数1为需校验的 prop,参数2为检验完回调,返回错误信息
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue