From 053a68e40d2dfa4b5372b19ea31f0351e97ce7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9C=88=E5=85=89?= <15521648+xiaoyueguang@users.noreply.github.com> Date: Mon, 28 Sep 2020 17:32:24 +0800 Subject: [PATCH] types(Swipe): add prev, next method types (#7270) --- types/swipe.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/swipe.d.ts b/types/swipe.d.ts index 1d130fbec..e02f98473 100644 --- a/types/swipe.d.ts +++ b/types/swipe.d.ts @@ -5,7 +5,8 @@ export type SwipeToOptions = { }; export class Swipe extends VanComponent { + prev(): void; + next(): void; swipeTo(index: number, options?: SwipeToOptions): void; - resize(): void; }