types(SwipeCell): add open、close method type

This commit is contained in:
陈嘉涵 2019-12-22 17:15:53 +08:00 committed by neverland
parent 285bce677c
commit 9a9676d6af
2 changed files with 8 additions and 1 deletions

3
types/index.d.ts vendored
View File

@ -13,6 +13,7 @@ import { Lazyload } from './lazyload';
import { List } from './list';
import { Locale } from './locale';
import { Notify } from './notify';
import { SwipeCell } from './swipe-cell';
import { Toast } from './toast';
export const version: string;
@ -74,7 +75,6 @@ export class Sticky extends VanComponent {}
export class SubmitBar extends VanComponent {}
export class Swipe extends VanComponent {}
export class SwipeItem extends VanComponent {}
export class SwipeCell extends VanComponent {}
export class Switch extends VanComponent {}
export class SwitchCell extends VanComponent {}
export class Tab extends VanComponent {}
@ -99,5 +99,6 @@ export {
List,
Locale,
Notify,
SwipeCell,
Toast
};

6
types/swipe-cell.d.ts vendored Normal file
View File

@ -0,0 +1,6 @@
import { VanComponent } from './component';
export class SwipeCell extends VanComponent {
open(position: 'left' | 'right'): void;
close(): void;
}