[new feature] Swipe: add immediate option of swipeTo method (#3821)

This commit is contained in:
neverland
2019-07-11 16:09:20 +08:00
committed by GitHub
parent 734c3259d8
commit 3c9dc4edfe
6 changed files with 52 additions and 14 deletions
+7 -1
View File
@@ -162,7 +162,13 @@ export default {
| 方法名 | 参数 | 返回值 | 介绍 |
|------|------|------|------|
| swipeTo | index: 目标位置的索引 | void | 滚动到目标位置 |
| swipeTo | index: 目标位置的索引, options: 选项 | void | 滚动到目标位置 |
### swipeTo Options 格式
| 名称 | 说明 | 类型 |
|------|------|------|
| immediate | 是否跳过动画 | `boolean` |
### Swipe Slots