Files
aiot-platform-ui/apps/web-antd/dist/js/index-CVM8Bl8b.js
lzh cb81829d4c
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 24s
chore: build and deploy web-antd
2026-01-14 14:15:09 +08:00

2 lines
1.3 KiB
JavaScript

import{an as y,aA as x}from"./bootstrap-CvQmCMXe.js";import{m as f,aa as g,ad as p,b2 as i,I as m,bb as b,aT as o,j as d,bJ as $,ae as c,u as n}from"../jse/index-index-CAIAj58w.js";const R={class:"image-slot"},t=93.75,B=f({name:"MagicCube",__name:"index",props:{property:{}},setup(e){const l=e,u=g(()=>{let a=0;return l.property.list.length>0&&(a=Math.max(...l.property.list.map(s=>s.top+s.height))),a===0?1:a});return(a,s)=>(i(),p("div",{class:"relative",style:o({height:`${u.value*t}px`,width:`${4*t}px`,padding:`${e.property.space}px`})},[(i(!0),p(m,null,b(e.property.list,(r,h)=>(i(),p("div",{key:h,class:"absolute",style:o({width:`${r.width*t-e.property.space}px`,height:`${r.height*t-e.property.space}px`,top:`${r.top*t}px`,left:`${r.left*t}px`})},[d(n(x),{class:"h-full w-full object-cover",src:r.imgUrl,preview:!1,style:o({borderTopLeftRadius:`${e.property.borderRadiusTop}px`,borderTopRightRadius:`${e.property.borderRadiusTop}px`,borderBottomLeftRadius:`${e.property.borderRadiusBottom}px`,borderBottomRightRadius:`${e.property.borderRadiusBottom}px`})},{error:$(()=>[c("div",R,[c("div",{class:"flex items-center justify-center",style:o({width:`${r.width*t}px`,height:`${r.height*t}px`})},[d(n(y),{icon:"ep-picture",color:"gray",size:t})],4)])]),_:2},1032,["src","style"])],4))),128))],4))}});export{B as default};