更新记录
1.0.0(2023-05-29) 下载此版本
初次开发
1.0(2023-05-19) 下载此版本
首次开发
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | - | √ | - | √ | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - | - | - |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
ning-scrollhorizontally
此插件依赖第三方uView插件,插件已经引入相关依赖,无需再引入
使用:
模板使用:
复制代码 <kswiper :list="list4" previousMargin="30" nextMargin="30" circular radius="5"
bgColor="rgba(0,0,0,0)" pauseVideo autoplay auto show-fullscreen-btn="false"
@click="handleSwiperClick($event)" @change="changee" :class="this.gk ? h : w"></kswiper>
data数据:
复制代码 list4: [
{
// 视频地址
url: '',
// 显示的标题
title: '',
// 切换时封面
poster: ''
}, {
url: '',
// 显示的标题
title: '',
// 切换时封面
poster: ''
},
],
项目引入:
由于借助了第三方组件,因此需要当前页面和main.js同时引入
当前页面
复制代码import kswiper from '../../uni_modules/ning-scrollhorizontally/components/ning-scrollhorizontally/ning-scrollhorizontally.vue'
components:{
kswiper
},
main.js
复制代码import kswiper from './uni_modules/ning-scrollhorizontally';
Vue.use(kswiper);
[Vue warn]: Property or method "w" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Propert