菜鸟看前端(微信小程序自定义组件封装-轮播图的封装)
在根目录下新建components文件夹
tip:所有文件都可以自定义名字
在components文件夹下新建swiper文件夹,在文件夹内新建component
新建完成后
在swiper.wxml中写入
<swiper indicator-dots='true'
indicator-active-color='#ff5777'
autoplay='true'
circular='true'
interval='3000'
原创
2020-12-21 19:45:11 ·
285 阅读 ·
2 评论