index-36e976a8.js 1.6 KB

1
  1. import{d as f,e as g,o as a,c as o,F as b,C as R,ay as s,i as d,w,j as n,a as v,n as $,_ as B,__tla as T}from"./index-2f799233.js";import{E as j,__tla as z}from"./el-image-4d26fa76.js";import{__tla as C}from"./el-image-viewer-8e9e3571.js";let u,M=Promise.all([(()=>{try{return T}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return C}catch{}})()]).then(async()=>{let p,e,i;p={class:"image-slot"},e=93.75,i=f({name:"MagicCube",__name:"index",props:{property:{type:Object,required:!0}},setup(m){const l=m,y=g(()=>{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 a(),o("div",{class:"relative",style:s({height:v(y)*e+"px",width:"375px"})},[(a(!0),o(b,null,R(t.property.list,(r,x)=>(a(),o("div",{key:x,class:"absolute",style:s({width:r.width*e-2*t.property.space+"px",height:r.height*e-2*t.property.space+"px",margin:`${t.property.space}px`,top:r.top*e+"px",left:r.left*e+"px"})},[d(_,{class:"h-full w-full",fit:"cover",src:r.imgUrl,style:s({borderTopLeftRadius:`${t.property.borderRadiusTop}px`,borderTopRightRadius:`${t.property.borderRadiusTop}px`,borderBottomLeftRadius:`${t.property.borderRadiusBottom}px`,borderBottomRightRadius:`${t.property.borderRadiusBottom}px`})},{error:w(()=>[n("div",p,[n("div",{class:"flex items-center justify-center",style:s({width:r.width*e+"px",height:r.height*e+"px"})},[d(h,{icon:"ep-picture",color:"gray",size:e})],4)])]),_:2},1032,["src","style"])],4))),128))],4)}}}),u=B(i,[["__file","D:/zx/mall-newfeifan-zx-business/src/components/DiyEditor/components/mobile/MagicCube/index.vue"]])});export{M as __tla,u as default};