Swipe 轮播
使用范例
更多例子请参考Demo
API
参数 | 说明 | 类型 | 默认值 |
autoPlay | 是否自动播放 |
|
|
interval | 自动轮播间隔 |
|
|
duration | 动画时长 |
|
|
initialSwipe | 初始位置索引值 |
|
|
showIndicators | 是否显示指示器 |
|
|
indicatorSize | 指示器大小 |
|
|
indicatorColor | 指示器颜色 |
|
|
scrollDirection | 滚动方向,可选值为 |
|
|
curve | 动画效果 |
|
|
onChange | 每一页轮播后触发 |
| - |
viewportFraction | 每个页面在滚动方向占据的视窗比例 |
|
|
children | 显示内容 |
| - |
indicator | 自定义指示器 |
| - |
Demo截图
Last updated