diff --git a/types/calendar.d.ts b/types/calendar.d.ts new file mode 100644 index 000000000..264f418f8 --- /dev/null +++ b/types/calendar.d.ts @@ -0,0 +1,5 @@ +import { VanComponent } from './component'; + +export class Calendar extends VanComponent { + reset(): void; +} diff --git a/types/index.d.ts b/types/index.d.ts index 1fd673c8f..d9803647f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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,