1 |
- import{d as _,p as n,b as h,r as w,a as m,o as y,l as I,ai as b,a2 as x,_ as k,cy as z,i as C,cz as g,__tla as V}from"./index-af173888.js";import{E as v,__tla as B}from"./el-image-viewer-0d82b94c.js";let p,L=Promise.all([(()=>{try{return V}catch{}})(),(()=>{try{return B}catch{}})()]).then(async()=>{const f=k(_({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(o){const t=o,l=h(()=>{const a={...t};return delete a.show,a}),i=w(t.show),s=()=>{i.value=!1};return(a,u)=>{const r=v;return m(i)?(y(),I(r,b({key:0},m(l),{onClose:s}),null,16)):x("",!0)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/ImageViewer/src/ImageViewer.vue"]]);let d=null;p=function(o){if(!z)return;const{urlList:t,initialIndex:l=0,infinite:i=!0,hideOnClickModal:s=!1,appendToBody:a=!1,zIndex:u=2e3,show:r=!0}=o,e={},c=document.createElement("div");e.urlList=t,e.initialIndex=l,e.infinite=i,e.hideOnClickModal=s,e.appendToBody=a,e.zIndex=u,e.show=r,document.body.appendChild(c),d=C(f,e),g(d,c)}});export{L as __tla,p as c};
|