vant/types/swipe.d.ts
2020-10-02 08:50:37 +08:00

16 lines
258 B
TypeScript

import { VanComponent } from './component';
export type SwipeToOptions = {
immediate?: boolean;
};
export class Swipe extends VanComponent {
prev(): void;
next(): void;
swipeTo(index: number, options?: SwipeToOptions): void;
resize(): void;
}