From 3c526ec1a26b5a38bc6a6ba2ded7a3db94bbcced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Sun, 22 Dec 2019 17:23:15 +0800 Subject: [PATCH] types(Tabs): add resize method type --- types/index.d.ts | 3 ++- types/tabs.d.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 types/tabs.d.ts diff --git a/types/index.d.ts b/types/index.d.ts index 31fceb0fb..aba801570 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -15,6 +15,7 @@ import { Locale } from './locale'; import { Notify } from './notify'; import { Swipe } from './swipe'; import { SwipeCell } from './swipe-cell'; +import { Tabs } from './tabs'; import { Toast } from './toast'; export const version: string; @@ -81,7 +82,6 @@ export class SwitchCell extends VanComponent {} export class Tab extends VanComponent {} export class Tabbar extends VanComponent {} export class TabbarItem extends VanComponent {} -export class Tabs extends VanComponent {} export class Tag extends VanComponent {} export class TreeSelect extends VanComponent {} export class Uploader extends VanComponent {} @@ -102,5 +102,6 @@ export { Notify, Swipe, SwipeCell, + Tabs, Toast }; diff --git a/types/tabs.d.ts b/types/tabs.d.ts new file mode 100644 index 000000000..57b8cad0a --- /dev/null +++ b/types/tabs.d.ts @@ -0,0 +1,5 @@ +import { VanComponent } from './component'; + +export class Tabs extends VanComponent { + resize(): void; +}