types(Swipe): add prev, next method types (#7270)

This commit is contained in:
小月光
2020-09-28 17:32:24 +08:00
committed by GitHub
parent 6079101958
commit 053a68e40d
+2 -1
View File
@@ -5,7 +5,8 @@ export type SwipeToOptions = {
};
export class Swipe extends VanComponent {
prev(): void;
next(): void;
swipeTo(index: number, options?: SwipeToOptions): void;
resize(): void;
}