index-51090023.js 1.6 KB

1
  1. import{d as g,Y as f,o as s,c as o,F as b,v as R,ao as a,f as d,w as v,g as n,a as w,j as $,_ as B,__tla as T}from"./index-62b7dfb7.js";import{E as j,__tla as z}from"./el-image-17267435.js";import{__tla as M}from"./el-image-viewer-5030a371.js";let m,C=Promise.all([(()=>{try{return T}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return M}catch{}})()]).then(async()=>{let p,r,i;p={class:"image-slot"},r=93.75,i=g({name:"MagicCube",__name:"index",props:{property:{type:Object,required:!0}},setup(u){const l=u,y=f(()=>{let t=0;return l.property.list.length>0&&(t=Math.max(...l.property.list.map(c=>c.bottom))),t+1});return(t,c)=>{const h=$,_=j;return s(),o("div",{class:"relative",style:a({height:w(y)*r+"px",width:"375px"})},[(s(!0),o(b,null,R(t.property.list,(e,x)=>(s(),o("div",{key:x,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:v(()=>[n("div",p,[n("div",{class:"flex items-center justify-center",style:a({width:e.width*r+"px",height:e.height*r+"px"})},[d(h,{icon:"ep-picture",color:"gray",size:r})],4)])]),_:2},1032,["src","style"])],4))),128))],4)}}}),m=B(i,[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/MagicCube/index.vue"]])});export{C as __tla,m as default};