index-d3f876ab.js 1.1 KB

1
  1. import{d as _,af as n,J as h,r as b,a as f,o as y,q as I,ai as w,O as x,bu as C,f as k,bv as O,__tla as v}from"./index-2eab2d23.js";import{E as z,__tla as B}from"./el-image-viewer-5d14bc77.js";let p,L=Promise.all([(()=>{try{return v}catch{}})(),(()=>{try{return B}catch{}})()]).then(async()=>{const m=_({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 a=i,l=h(()=>{const t={...a};return delete t.show,t}),o=b(a.show),d=()=>{o.value=!1};return(t,u)=>{const s=z;return f(o)?(y(),I(s,w({key:0},f(l),{onClose:d}),null,16)):x("",!0)}}});let r=null;p=function(i){if(!C)return;const{urlList:a,initialIndex:l=0,infinite:o=!0,hideOnClickModal:d=!1,appendToBody:t=!1,zIndex:u=2e3,show:s=!0}=i,e={},c=document.createElement("div");e.urlList=a,e.initialIndex=l,e.infinite=o,e.hideOnClickModal=d,e.appendToBody=t,e.zIndex=u,e.show=s,document.body.appendChild(c),r=k(m,e),O(r,c)}});export{L as __tla,p as c};