index-0ec53bb1.js 1.5 KB

1
  1. import{d as x,e as g,o as s,c as o,F as f,B as b,ax as a,i as d,w as R,j as c,a as w,_ as v,__tla as B}from"./index-abaca7e8.js";import{E as $,__tla as T}from"./el-image-56fee7ab.js";import{__tla as j}from"./el-image-viewer-45c4debe.js";let y,L=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return j}catch{}})()]).then(async()=>{let p,r;p={class:"image-slot"},r=93.75,y=x({name:"MagicCube",__name:"index",props:{property:{}},setup(h){const i=h,u=g(()=>{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=v,_=$;return s(),o("div",{class:"relative",style:a({height:w(u)*r+"px",width:"375px"})},[(s(!0),o(f,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{L as __tla,y as default};