index-3a4bdd79.js 1.6 KB

1
  1. import{d as g,L as f,o as s,c as o,F as b,v as R,az as a,g as d,w as v,h as n,a as w,q as $,_ as z,__tla as B}from"./index-52b99925.js";import{E as T,__tla as L}from"./el-image-9d9dde0a.js";import{__tla as M}from"./el-image-viewer-8d62bae1.js";let u,j=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return L}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(y){const l=y,h=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 m=$,_=T;return s(),o("div",{class:"relative",style:a({height:w(h)*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(m,{icon:"ep-picture",color:"gray",size:r})],4)])]),_:2},1032,["src","style"])],4))),128))],4)}}}),u=z(i,[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/MagicCube/index.vue"]])});export{j as __tla,u as default};