index-c381319d.js 1.2 KB

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