更新记录

1.0.1(2023-06-29)

优化信息

1.0.0(2023-06-26)

封装图鸟轮播组件2


平台兼容性

Vue2 Vue3
×
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
HBuilderX 3.1.0 app-vue × × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序
× × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari

porter-tuniaoswiper2

TuniaoUi for porter-tuniaoswiper2 v0.0.1| by 白日梦想家 2023-6-25

使用方式:

Tips:本插件完美贴合图鸟UI,如果需获得更好的使用体验请引用图鸟UI:https://ext.dcloud.net.cn/plugin?id=7088

<template>
    <!-- 渲染组件 -->
    <tuniaoswiper2 :swiperList="swiperList" :cardCur="cardCur" :experience-show="true" @callBack="callBack"></tuniaoswiper2>
</template>

<script>
    //引用组件
    import tuniaoswiper2 from "@/uni_modules/porter-tuniaoswiper2/components/porter-tuniaoswiper2/porter-tuniaoswiper2.vue"
    export default {
        components: {
            tuniaoswiper2, //注册组件
        },
        data() {
            return {
                swiperList: [{
                    id: 0,
                    type: 'image',
                    name: '总有你想不到的创意',
                    text: '海量分享',
                    color: '#00C3E3',
                    url: 'https://tnuiimage.tnkjapp.com/swiper/guide-bg1.jpg',
                    pngurl: 'https://tnuiimage.tnkjapp.com/swiper/c4d7.png'
                }, {
                    id: 1,
                    type: 'image',
                    name: '寻找一起成长的小伙伴',
                    text: '愉快玩耍',
                    color: '#FE5141',
                    url: 'https://tnuiimage.tnkjapp.com/swiper/guide-bg2.jpg',
                    pngurl: 'https://tnuiimage.tnkjapp.com/swiper/c4d8.png'
                }, {
                    id: 2,
                    type: 'image',
                    name: '更多彩蛋等你探索',
                    text: '酷炫多彩',
                    color: '#EF9A01',
                    url: 'https://tnuiimage.tnkjapp.com/swiper/guide-bg3.jpg',
                    pngurl: 'https://tnuiimage.tnkjapp.com/swiper/c4d9.png'
                }, {
                    id: 3,
                    type: 'image',
                    name: '商业合作请联系作者',
                    text: '悄悄来袭',
                    color: '#D960C7',
                    url: 'https://tnuiimage.tnkjapp.com/swiper/guide-bg4.jpg',
                    pngurl: 'https://tnuiimage.tnkjapp.com/swiper/c4d10.png'
                }], //数据源
                cardCur: 0, //当前选中下标
            }
        },
        methods: {
            //点击了立即体验的回调方法
            callBack(v) {
                console.log(v) // 返回true
            }
        }
    }
</script>

<style>
</style>
props结构:
swiperList:数据源
cardCur:当前选中值
duration:滑动动画时长 
interval:自动切换时间间隔
circular:是否采用衔接滑动,即播放到末尾后重新回到开头
autoplay:是否自动切换 
contentColor:内容文字颜色
experienceShow:是否显示立即体验按钮
experienceContent:按钮内容
swiperList结构
[{
    id: 0,
    type: 'image',
    name: '总有你想不到的创意',
    text: '海量分享',
    color: '#00C3E3',
    url: 'https://tnuiimage.tnkjapp.com/swiper/guide-bg1.jpg',
    pngurl: 'https://tnuiimage.tnkjapp.com/swiper/c4d7.png'
},]

仅供开发,如作它用所承受的法律责任一概与作者无关 图鸟文档地址: uniapp插件社区: *使用TuniaoUi开发扩展与插件时,请注明基于tuniao字眼

图鸟开源项目

开源项目

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问