github地址,喜欢的可以star下哦插件预览图功能介绍1.长按保存图片 2.右下角图片点击保存图片3.点击图片可以隐藏图片使用教程1.插件代码拷贝下载后把components目录下saveFile.vue文件拷贝到自己项目目录下2.插件全局配置在项目里main.js中配置如下代码import savefile from ‘./components/saveFile.vue’Vue.component(‘savefile’,savefile)3.插件使用vue页面使用<template> <view> <!– 预览图片 –> <savefile v-if=“isShowPhoto” :url=“qrUrl” @hide=“hidePhoto”></savefile> </view></template><script>export default { data() { return { qrUrl:’/static/img/img1.jpg’, isShowPhoto:true, }; }, onLoad() {}, methods: { hidePhoto(){ this.isShowPhoto = false; uni.showToast({ title:‘图片已隐藏’, icon:’none’ }) } }};</script>兼容性uni-app项目中使用都兼容 除了H5