From dac60c8a37d3b2b3686dc25c1c34b4029a963d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Thu, 16 Jan 2020 11:05:28 +0800 Subject: [PATCH] types(Calendar): add reset method type definition --- types/calendar.d.ts | 5 +++++ types/index.d.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 types/calendar.d.ts 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,