基本使用
html
<uv-swipe>
<uv-swipe-item>
<div class="test color1">
1
</div>
</uv-swipe-item>
<uv-swipe-item>
<div class="test color2">
2
</div>
</uv-swipe-item>
<uv-swipe-item>
<div class="test color3">
3
</div>
</uv-swipe-item>
</uv-swipe>
props
属性 | 含义 | 类型 | 默认值 |
---|---|---|---|
pageSize | 每页显示条数 | Number | 10 |
events
事件名称 | 含义 | 参数 |
---|---|---|
change | 页数改变时 | 当前的index |
css变量
css