index-8e19be94.js 1.2 KB

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