admin管理员组

文章数量:1544063

基于photoswipe的vue图片预览插件 vue-photo-preview

官方文档:https://www.npmjs/package/vue-photo-preview

1. 安装依赖

npm install vue-photo-preview --save

2. 全局引入

main.js

import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.use(preview)
// 配置属性参数
var options={
   
    fullscreenEl:false, // 关闭全屏按钮
    zoomEl

本文标签: 插件图片vuephotoswipePhoto