types(Form): add type definition

This commit is contained in:
陈嘉涵
2020-02-13 20:36:18 +08:00
parent 27187a2fc4
commit d80bbf64dd
3 changed files with 13 additions and 0 deletions

9
types/form.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
import { VanComponent } from './component';
export class Form extends VanComponent {
submit(): void;
validate(name?: string): Promise<void>;
resetValidation(name?: string): void;
}