l-vue3-preview-img
v1.1.0
Published
图片预览
Downloads
6
Readme
vue3简易版 图片预览插件
安装
cnpm install --save l-vue3-preview-img
main.js
import PreviewImg from 'l-vue3-preview-img'
app.use(PreviewImg)
使用
const $previewImg = inject('$previewImg')
$previewImg.show(img, imgList)
import { previewImg } from 'l-vue3-preview-img'
//img 必填
//填写imgList时 img可以填写下标
previewImg(img, imgList)