更新记录

1.0.1(2022-04-24)

晚上文档

1.0.0(2022-04-24)

初始化


平台兼容性

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

weixi-auto-swiper

使用方式1

<template>
    <view class="app-page">
        <weixi-auto-swiper :items="imgs" />
    </view>
</template>

<script>
    export default {
        data() {
            return {
                imgs: [ 'http://abc.com/1.png', 'http://abc.com/2.png']
            };
        },
    }
</script>

使用方式2

<template>
    <view class="app-page">
        <weixi-auto-swiper :items="imgs" image-key="file" />
    </view>
</template>

<script>
    export default {
        data() {
            return {
                imgs: [
                    {file: 'http://abc.com/1.png'},
                    {file: 'http://abc.com/2.png'},
                ]
            };
        },
    }
</script>

属性说明

属性 类型 说明
items array 图片数据
image-key string 图片字段,当items元素为图片时,本字段不要设置

其他属性和swiper原始组件一致

文档链接 https://uniapp.dcloud.io/component/swiper.html

隐私、权限声明

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

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

插件不采集任何数据

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

许可协议

MIT协议

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