1 |
- import{d as x,e as f,o as s,c as o,F as g,Q as b,aG as a,f as d,A as R,B as c,a as v,_ as w,__tla as B}from"./index-6e0fa573.js";import{E as $,__tla as T}from"./el-image-f27c893c.js";import{__tla as L}from"./el-image-viewer-bd37a3c0.js";let h,M=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return L}catch{}})()]).then(async()=>{let p,r;p={class:"image-slot"},r=93.75,h=x({name:"MagicCube",__name:"index",props:{property:{}},setup(u){const i=u,y=f(()=>{let t=0;return i.property.list.length>0&&(t=Math.max(...i.property.list.map(l=>l.bottom))),t+1});return(t,l)=>{const m=w,_=$;return s(),o("div",{class:"relative",style:a({height:v(y)*r+"px",width:"375px"})},[(s(!0),o(g,null,b(t.property.list,(e,n)=>(s(),o("div",{key:n,class:"absolute",style:a({width:e.width*r-2*t.property.space+"px",height:e.height*r-2*t.property.space+"px",margin:`${t.property.space}px`,top:e.top*r+"px",left:e.left*r+"px"})},[d(_,{class:"h-full w-full",fit:"cover",src:e.imgUrl,style:a({borderTopLeftRadius:`${t.property.borderRadiusTop}px`,borderTopRightRadius:`${t.property.borderRadiusTop}px`,borderBottomLeftRadius:`${t.property.borderRadiusBottom}px`,borderBottomRightRadius:`${t.property.borderRadiusBottom}px`})},{error:R(()=>[c("div",p,[c("div",{class:"flex items-center justify-center",style:a({width:e.width*r+"px",height:e.height*r+"px"})},[d(m,{icon:"ep-picture",color:"gray",size:r})],4)])]),_:2},1032,["src","style"])],4))),128))],4)}}})});export{M as __tla,h as default};
|