【文件属性】:
文件名称:vue-photo-preview:基于photoswipe的vue图片预览组件
文件大小:982KB
文件格式:ZIP
更新时间:2021-04-13 11:16:53
JavaScript
vue-photo-preview
"基于photoswipe的vue图片预览插件"
说明
1.简化了photoswipe的默认设置
2.取消了图片需设定尺寸的要求
3.默认关闭了分享按钮
4.简化了html结构
使用
# 安装
npm install vue-photo-preview --save
# 引入
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.use(preview)
//或者
//var option={....} option配置请查看 http://photoswipe.com/documentation/options.html
//Vue.use(preview,option)
# umd
<link rel="stylesheet" typ