[Doc] default slot name
This commit is contained in:
@@ -149,7 +149,7 @@ Use ref to get swipe instance and call instance methods
|
||||
|
||||
### Slot
|
||||
|
||||
| name | Description |
|
||||
| Name | Description |
|
||||
|------|------|
|
||||
| - | Content |
|
||||
| default | Content |
|
||||
| indicator | Custom indicator |
|
||||
|
||||
@@ -135,13 +135,13 @@ export default {
|
||||
|
||||
### Swipe 事件
|
||||
|
||||
| 事件名 | 说明 | 参数 |
|
||||
| 事件名 | 说明 | 回调参数 |
|
||||
|------|------|------|
|
||||
| change | 每一页轮播结束后触发 | index, 当前页的索引 |
|
||||
|
||||
### SwipeItem 事件
|
||||
|
||||
| 事件名 | 说明 | 参数 |
|
||||
| 事件名 | 说明 | 回调参数 |
|
||||
|------|------|------|
|
||||
| click | 点击时触发 | - |
|
||||
|
||||
@@ -153,9 +153,9 @@ export default {
|
||||
|------|------|------|------|
|
||||
| swipeTo | index: 目标位置的索引 | void | 滚动到目标位置 |
|
||||
|
||||
### 插槽
|
||||
### Slot
|
||||
|
||||
| 名称 | 说明 |
|
||||
|------|------|
|
||||
| - | 轮播内容 |
|
||||
| default | 轮播内容 |
|
||||
| indicator | 自定义指示器 |
|
||||
|
||||
Reference in New Issue
Block a user