更新记录

1.1(2022-01-22)

上一个有bug

1.0(2022-01-19)

极简 不知是否有未知bug


平台兼容性

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

食用方法

1.下载文件 2.手动引入video-swiper.vue 组件 3.开始食用

<template>
    <view class="content">
        <video-swiper :videoList="videoList"></video-swiper>
    </view>
</template>

<script>
    import videoSwiper from '../../components/video-swiper/video-swiper.vue'
    export default {
        components:{
            'video-swiper':videoSwiper
        },
        data() {
            return {
                  res: [
                    "https://mp4.vjshi.com/2021-10-24/29985109c41347398a8a3e65ed79ef3e.mp4",
                    "https://mp4.vjshi.com/2021-12-22/9fa3afce1abe423e9eddfa636417bd4f.mp4",
                    "https://mp4.vjshi.com/2021-09-28/993f8cc276164cb98c33bd188cb75a2d.mp4",
                    "https://mp4.vjshi.com/2021-11-02/5d7a05c1ad7840cca21e38b5575b8ca6.mp4",
                    "https://mp4.vjshi.com/2020-09-29/08c345ec362de38f18156922f600492a.mp4",
                ],
                videoList : []
            }
        },
        created() {
            let vl = this.res
            setTimeout(()=>{  // 模拟请求
                this.videoList = vl.map((item,index)=>{
                    return {  //基本数据格式
                        src:item,
                        _id:index
                    }
                })
            },500)
        },
    }
</script>

<style>
    .content{
        width: 100%;
        height: 100vh;
    }
</style>

隐私、权限声明

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

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

插件不采集任何数据

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

许可协议

MIT协议

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