types(Tabs): add resize method type

This commit is contained in:
陈嘉涵 2019-12-22 17:23:15 +08:00 committed by neverland
parent a1831b8638
commit 3c526ec1a2
2 changed files with 7 additions and 1 deletions

3
types/index.d.ts vendored
View File

@ -15,6 +15,7 @@ import { Locale } from './locale';
import { Notify } from './notify'; import { Notify } from './notify';
import { Swipe } from './swipe'; import { Swipe } from './swipe';
import { SwipeCell } from './swipe-cell'; import { SwipeCell } from './swipe-cell';
import { Tabs } from './tabs';
import { Toast } from './toast'; import { Toast } from './toast';
export const version: string; export const version: string;
@ -81,7 +82,6 @@ export class SwitchCell extends VanComponent {}
export class Tab extends VanComponent {} export class Tab extends VanComponent {}
export class Tabbar extends VanComponent {} export class Tabbar extends VanComponent {}
export class TabbarItem extends VanComponent {} export class TabbarItem extends VanComponent {}
export class Tabs extends VanComponent {}
export class Tag extends VanComponent {} export class Tag extends VanComponent {}
export class TreeSelect extends VanComponent {} export class TreeSelect extends VanComponent {}
export class Uploader extends VanComponent {} export class Uploader extends VanComponent {}
@ -102,5 +102,6 @@ export {
Notify, Notify,
Swipe, Swipe,
SwipeCell, SwipeCell,
Tabs,
Toast Toast
}; };

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

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