feat(Form): support valdiate multiple names (#7810)

This commit is contained in:
neverland
2020-12-24 20:11:22 +08:00
committed by GitHub
parent f5281f1e7e
commit d92d29c885
5 changed files with 49 additions and 21 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { VanComponent } from './component';
export class Form extends VanComponent {
submit(): void;
validate(name?: string): Promise<void>;
validate(name?: string | string[]): Promise<void>;
resetValidation(name?: string): void;