hevue-img-preview
hevue-img-preview copied to clipboard
本组件是一个基于 vue 编写的 vue 图片预览组件,支持 pc 和手机端,支持单图和多图预览,仅传入一个图片地址,即可实现图片预览效果。手机端支持单指拖拽和双指缩放。页面各组件颜色均可可自定义,实现个性化设计,...
**plugins/imgViewer.client.js** ``` import imgViewer from 'hevue-img-preview' const options={keyboard: true,clickMaskCLose: true}; export default defineNuxtPlugin(nuxtApp => {// defineNuxtPlugin 是全局的,不需要手动引入即可使用,不会报错 nuxtApp.vueApp.use(imgViewer,options); return {provide:{imgViewer}}; }) ``` **other view page** `useNuxtApp().$imgViewer(['a.jpg','b.jpg']);` **report debug** ``` Uncaught...

建议支持左右箭头切换上一张和下一张,或者将切换的方法暴露出来,让调用者自定义设置。
可以支持下载么?
