[Improvement] Swipe: add swipeTo method (#1222)

This commit is contained in:
neverland
2018-06-05 09:39:02 +08:00
committed by GitHub
parent a3579a88e4
commit b33c8ef5f2
8 changed files with 223 additions and 34 deletions
+8
View File
@@ -94,3 +94,11 @@ export default {
| 事件名 | 说明 | 参数 |
|-----------|-----------|-----------|
| change | 每一页轮播结束后触发 | index, 当前页的索引 |
### 方法
通过 ref 可以获取到 swipe 实例并调用实例方法
| 方法名 | 参数 | 返回值 | 介绍 |
|-----------|-----------|-----------|-------------|
| swipeTo | index: 目标位置的索引 | void | 滚动到目标位置 |