vue移动端图片预览,使用photoSwipe插件

photoswipe.js

var doc=document,
    domEl=doc.createElement("div");
    domEl.innerHTML='
'; domEl.className="pswp"; domEl.tabIndex="-1"; domEl.setAttribute("role","dialog"); domEl.setAttribute("aria-hidden","true"); doc.body.appendChild(domEl); domEl.offsetHeight; exports.open=function(items,index){ var gallery = new PhotoSwipe(domEl, PhotoSwipeUI_Default, items,{index:index}); gallery.init(); return gallery; };

你可能感兴趣的:(vue移动端图片预览,使用photoSwipe插件)