mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[Doc] Swipe slot
This commit is contained in:
@@ -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 |
|
||||||
|
@@ -148,6 +148,13 @@ export default {
|
|||||||
|-----------|-----------|-----------|-------------|
|
|-----------|-----------|-----------|-------------|
|
||||||
| swipeTo | index: 目标位置的索引 | void | 滚动到目标位置 |
|
| swipeTo | index: 目标位置的索引 | void | 滚动到目标位置 |
|
||||||
|
|
||||||
|
### 插槽
|
||||||
|
|
||||||
|
| 名称 | 说明 |
|
||||||
|
|-----------|-----------|
|
||||||
|
| - | 轮播内容 |
|
||||||
|
| indicator | 自定义指示器 |
|
||||||
|
|
||||||
### 更新日志
|
### 更新日志
|
||||||
|
|
||||||
| 版本 | 类型 | 内容 |
|
| 版本 | 类型 | 内容 |
|
||||||
|
Reference in New Issue
Block a user