hevue-img-preview icon indicating copy to clipboard operation
hevue-img-preview copied to clipboard

本组件是一个基于 vue 编写的 vue 图片预览组件,支持 pc 和手机端,支持单图和多图预览,仅传入一个图片地址,即可实现图片预览效果。手机端支持单指拖拽和双指缩放。页面各组件颜色均可可自定义,实现个性化设计,...

Results 16 hevue-img-preview issues
Sort by recently updated
recently updated
newest added

**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...

![image](https://user-images.githubusercontent.com/51069636/210326064-6de9b4f9-b0b7-4c99-9edf-b13c6b257ad1.png)

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

![image](https://github.com/user-attachments/assets/337b6c16-23b1-48b7-8456-26da95f43057)