Swiper
Swiper view container, often used for banner carousels.
Code examples
API
Swiper
Swiper props
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
indicator-dots | Show page indicator dots | boolean | false |
autoplay | Autoplay slides | boolean | false |
interval | Autoplay interval (ms) | number | 5000 |
duration | Slide transition duration (ms) | number | 500 |
current | Current slide index | number | 0 |
circular | Enable infinite loop | boolean | false |
vertical | Vertical swiping | boolean | false |
Swiper events
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
change | Fires when the active slide changes | { current } | - |
animationfinish | Fires when the transition ends | { current } | - |