以下内容整理自《慕课网vue音乐app》
首先:添加dots
active的样式
&.active
width: 20px
border-radius: 5px
background: $color-text-ll
这里有一个问题就是betterscroll在1.0以后的是没有snapLoop的。
所以我安装了0.1.15版本
自动轮播如下
以下内容整理自《慕课网vue音乐app》
首先:添加dots
active的样式
&.active
width: 20px
border-radius: 5px
background: $color-text-ll
这里有一个问题就是betterscroll在1.0以后的是没有snapLoop的。
所以我安装了0.1.15版本
自动轮播如下