types(Calendar): add reset method type definition

This commit is contained in:
陈嘉涵 2020-01-16 11:05:28 +08:00
parent 29b509835f
commit dac60c8a37
2 changed files with 7 additions and 1 deletions

5
types/calendar.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
import { VanComponent } from './component';
export class Calendar extends VanComponent {
reset(): void;
}

3
types/index.d.ts vendored
View File

@ -3,6 +3,7 @@ import Vue from 'vue';
import { VanComponent } from './component';
import { AddressEdit } from './address-edit';
import { Area } from './area';
import { Calendar } from './calendar';
import { Checkbox } from './checkbox';
import { CheckboxGroup } from './checkbox-group';
import { CountDown } from './count-down';
@ -29,7 +30,6 @@ export function install(vue: typeof Vue): void;
export class ActionSheet extends VanComponent {}
export class AddressList extends VanComponent {}
export class Button extends VanComponent {}
export class Calendar extends VanComponent {}
export class Card extends VanComponent {}
export class Cell extends VanComponent {}
export class CellGroup extends VanComponent {}
@ -91,6 +91,7 @@ export class TreeSelect extends VanComponent {}
export {
AddressEdit,
Area,
Calendar,
Checkbox,
CheckboxGroup,
CountDown,