index-519182c1.js 1.2 KB

1
  1. import{d as _,ac as n,Y as h,r as w,a as f,o as x,x as y,af as I,a0 as b,_ as k,bN as C,f as g,bO as z,__tla as O}from"./index-8dc1e40a.js";import{E as V,__tla as v}from"./el-image-viewer-3b8905e6.js";let m,B=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return v}catch{}})()]).then(async()=>{const p=k(_({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=h(()=>{const a={...t};return delete a.show,a}),o=w(t.show),l=()=>{o.value=!1};return(a,u)=>{const r=V;return f(o)?(x(),y(r,I({key:0},f(s),{onClose:l}),null,16)):b("",!0)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/ImageViewer/src/ImageViewer.vue"]]);let d=null;m=function(i){if(!C)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=g(p,e),z(d,c)}});export{B as __tla,m as c};