[Doc] Swipe slot

This commit is contained in:
陈嘉涵 2018-10-12 20:36:08 +08:00
parent 5c05eb42cb
commit 3eb07cecc0
2 changed files with 15 additions and 1 deletions

View File

@ -146,4 +146,11 @@ Use ref to get swipe instance and call instance methods
| Name | Attribute | Return value | Description | | Name | Attribute | Return value | Description |
|-----------|-----------|-----------|-------------| |-----------|-----------|-----------|-------------|
| swipeTo | index: 目标位置的索引 | void | 滚动到目标位置 | | swipeTo | index: target index | void | Swipe to target index |
### Slot
| name | Description |
|-----------|-----------|
| - | Content |
| indicator | Custom indicator |

View File

@ -148,6 +148,13 @@ export default {
|-----------|-----------|-----------|-------------| |-----------|-----------|-----------|-------------|
| swipeTo | index: 目标位置的索引 | void | 滚动到目标位置 | | swipeTo | index: 目标位置的索引 | void | 滚动到目标位置 |
### 插槽
| 名称 | 说明 |
|-----------|-----------|
| - | 轮播内容 |
| indicator | 自定义指示器 |
### 更新日志 ### 更新日志
| 版本 | 类型 | 内容 | | 版本 | 类型 | 内容 |