更新记录
1.0.0(2023-04-12)
下载此版本
带有视差的轮播图
平台兼容性
uni-app
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
组件属性
其他就是轮班图的那些属性了
组件事件
就是轮播图的那些事件,自行添加
使用说明
<template>
<view class="swiper"><yhdslSwiper :autoplay="true" :imgList="imgList" @change="change"></yhdslSwiper></view>
</template>
<script>
import yhdslSwiper from '@/components/yhdsl-swiper2/yhdsl-swiper2.vue';
export default {
data() {
return {
imgList: ['../../static/img.jpg', '../../static/img.jpg', '../../static/img.jpg']
};
},
components: {
yhdslSwiper
},
methods: {
change(e){
console.log(e)
}
}
};
</script>
<style scoped lang="scss"></style>