vue-preview-img
v0.1.3
Published
基于vue的PC端图片预览组件
Downloads
16
Readme
vue-preview-img
基于vue的PC端图片预览组件
使用方式
- 安装
npm i vue-preview-img --save
- 在main.js中注册
import previewImg from 'vue-preview-img'
import '../node_modules/vue-preview-img/lib/vue-preview-img.css'
Vue.use(previewImg)
- 调用
// src: 传入图片路径
this.$previewImg({ src: "http://xxxx.jpg" });