index-4203485c.js 1.2 KB

1
  1. import{d as _,ag as n,K as h,r as w,a as m,o as x,v as y,aj as I,P as b,_ as g,bw as k,f as C,bx as v,__tla as z}from"./index-11e4820e.js";import{E as V,__tla as B}from"./el-image-viewer-c4f5814f.js";let f,L=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return B}catch{}})()]).then(async()=>{const p=g(_({name:"ImageViewer",__name:"ImageViewer",props:{urlList:{type:Array,default:()=>[]},zIndex:n.number.def(200),initialIndex:n.number.def(0),infinite:n.bool.def(!0),hideOnClickModal:n.bool.def(!1),appendToBody:n.bool.def(!1),show:n.bool.def(!1)},setup(i){const t=i,s=h(()=>{const a={...t};return delete a.show,a}),o=w(t.show),l=()=>{o.value=!1};return(a,u)=>{const r=V;return m(o)?(x(),y(r,I({key:0},m(s),{onClose:l}),null,16)):b("",!0)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/ImageViewer/src/ImageViewer.vue"]]);let d=null;f=function(i){if(!k)return;const{urlList:t,initialIndex:s=0,infinite:o=!0,hideOnClickModal:l=!1,appendToBody:a=!1,zIndex:u=2e3,show:r=!0}=i,e={},c=document.createElement("div");e.urlList=t,e.initialIndex=s,e.infinite=o,e.hideOnClickModal=l,e.appendToBody=a,e.zIndex=u,e.show=r,document.body.appendChild(c),d=C(p,e),v(d,c)}});export{L as __tla,f as c};