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,b3 as C,f as k,b4 as O,__tla as z}from"./index-73e02845.js";import{E as B,__tla as L}from"./el-image-viewer-a6b3dac3.js";let p,M=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return L}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=B;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{M as __tla,p as c};
|