Listen1使用教程

您所在的位置:网站首页 listen1播放器怎么样 Listen1使用教程

Listen1使用教程

2023-07-26 19:11| 来源: 网络整理| 查看: 265

vue结合vant写图片预览功能

LOVE_明镜: 刚刚搜到别的博主的方法了 ImagePreview({ images:[ //需要预览的图片URL数组 'https://img.yzcdn.cn/public_files/2017/09/05/4e3ea0898b1c2c416eec8c11c5360833.jpg', 'https://img.yzcdn.cn/public_files/2017/09/05/fd08f07665ed67d50e11b32a21ce0682.jpg' ], startPosition:0, //图片预览起始位置索引 默认 0 showIndex: true, //是否显示页码 默认 true showIndicators: true, //是否显示轮播指示器 默认 false loop:false, //是否开启循环播放 貌似循环播放是不起作用的。。。 onClose:function (url) { //回调参数,官方文档解释的不是很清楚。。。 //回调参数类型 url:{ index:Number(当前图片的索引值), url:当前图片的URL } var num = url.index, url_link = url.url; console.log(url); } }) https://blog.csdn.net/weixin_43294092/article/details/107054184



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3