更新记录

1.0.4(2023-06-15)

增加预览二维码

1.0.3(2023-04-14)

增加示例

1.0.2(2023-04-11)

增加示例图片

查看更多

平台兼容性

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

liu-customize-swiper适用于uni-app项目的轮播图展示

本组件目前兼容微信小程序、H5

本组件常用于轮播展示,支持点击事件,支持自定义,代码清晰,逻辑全,非常适合新手学习或自由DIY

--- 扫码预览、关注我们 ---

扫码关注公众号,查看更多插件信息,预览插件效果!

使用方式

<liu-customize-swiper title="插画作品" BgPic="https://cdn.pixabay.com/photo/2020/09/05/19/38/landscape-5547401_1280.png" :swiperList="swiperList" @change="checkPic" @checked="checkId"></liu-customize-swiper>
export default {
    data() {
        return {
            swiperList:[
                {
                    picUrl:'https://cdn.pixabay.com/photo/2020/05/19/13/32/cartoon-5190837_1280.jpg',
                    title:'思考'
                },{
                    picUrl:'https://cdn.pixabay.com/photo/2020/05/19/13/35/cartoon-5190860_1280.jpg',
                    title:'雨天'
                },{
                    picUrl:'https://cdn.pixabay.com/photo/2021/07/22/11/25/rabbit-6485072_1280.jpg',
                    title:'兔子'
                },{
                    picUrl:'https://cdn.pixabay.com/photo/2022/03/31/14/53/camp-7103189_1280.png',
                    title:'日落'
                },{
                    picUrl:'https://cdn.pixabay.com/photo/2022/11/29/19/05/boho-7625140_1280.jpg',
                    title:'植物'
                },{
                    picUrl:'https://cdn.pixabay.com/photo/2022/08/25/23/06/woman-7411414_1280.png',
                    title:'时尚'
                },{
                    picUrl:'https://cdn.pixabay.com/photo/2023/03/07/12/45/child-7835677_1280.jpg',
                    title:'生活'
                }
            ]
        };
    },
    methods: {
        //图片点击事件
        checkPic(e){
            console.log(e, '点击了');
        },
        //当前图片下标
        checkId(e){
            console.log(e, '当前ID是');
        },
    }
}

属性说明

名称 类型 默认值 描述
swiperList Array [] 图片数据
title String 标题
BgPic String 背景图
@change Function 点击图片回调事件
@checked Function 当前显示的图片信息回调事件

隐私、权限声明

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

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

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

许可协议

1、本插件可免费下载使用;

2、未经许可,严禁复制本插件派生同类插件上传插件市场;

3、未经许可,严禁在插件市场恶意复制抄袭本插件进行违规获利;

4、对本软件的任何使用都必须遵守这些条款,违反这些条款的个人或组织将面临法律追究。

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