index-6b00d885.js 1.2 KB

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