mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(SwipeCell): add open、close method type
This commit is contained in:
parent
285bce677c
commit
9a9676d6af
3
types/index.d.ts
vendored
3
types/index.d.ts
vendored
@ -13,6 +13,7 @@ import { Lazyload } from './lazyload';
|
|||||||
import { List } from './list';
|
import { List } from './list';
|
||||||
import { Locale } from './locale';
|
import { Locale } from './locale';
|
||||||
import { Notify } from './notify';
|
import { Notify } from './notify';
|
||||||
|
import { SwipeCell } from './swipe-cell';
|
||||||
import { Toast } from './toast';
|
import { Toast } from './toast';
|
||||||
|
|
||||||
export const version: string;
|
export const version: string;
|
||||||
@ -74,7 +75,6 @@ export class Sticky extends VanComponent {}
|
|||||||
export class SubmitBar extends VanComponent {}
|
export class SubmitBar extends VanComponent {}
|
||||||
export class Swipe extends VanComponent {}
|
export class Swipe extends VanComponent {}
|
||||||
export class SwipeItem extends VanComponent {}
|
export class SwipeItem extends VanComponent {}
|
||||||
export class SwipeCell extends VanComponent {}
|
|
||||||
export class Switch extends VanComponent {}
|
export class Switch extends VanComponent {}
|
||||||
export class SwitchCell extends VanComponent {}
|
export class SwitchCell extends VanComponent {}
|
||||||
export class Tab extends VanComponent {}
|
export class Tab extends VanComponent {}
|
||||||
@ -99,5 +99,6 @@ export {
|
|||||||
List,
|
List,
|
||||||
Locale,
|
Locale,
|
||||||
Notify,
|
Notify,
|
||||||
|
SwipeCell,
|
||||||
Toast
|
Toast
|
||||||
};
|
};
|
||||||
|
6
types/swipe-cell.d.ts
vendored
Normal file
6
types/swipe-cell.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { VanComponent } from './component';
|
||||||
|
|
||||||
|
export class SwipeCell extends VanComponent {
|
||||||
|
open(position: 'left' | 'right'): void;
|
||||||
|
close(): void;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user