mirror of
https://github.com/youzan/vant.git
synced 2025-12-25 02:02:01 +08:00
types(Form): add type definition
This commit is contained in:
9
types/form.d.ts
vendored
Normal file
9
types/form.d.ts
vendored
Normal 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;
|
||||
}
|
||||
2
types/index.d.ts
vendored
2
types/index.d.ts
vendored
@@ -11,6 +11,7 @@ import { DatetimePicker } from './datetime-picker';
|
||||
import { Dialog } from './dialog';
|
||||
import { DropdownItem } from './dropdown-item';
|
||||
import { Field } from './field';
|
||||
import { Form } from './form';
|
||||
import { ImagePreview } from './image-preview';
|
||||
import { Lazyload } from './lazyload';
|
||||
import { List } from './list';
|
||||
@@ -98,6 +99,7 @@ export {
|
||||
DatetimePicker,
|
||||
Dialog,
|
||||
DropdownItem,
|
||||
Form,
|
||||
Field,
|
||||
ImagePreview,
|
||||
Lazyload,
|
||||
|
||||
Reference in New Issue
Block a user