1 |
- import{d as z,r as o,w as A,o as t,C as u,A as m,c as l,F as g,Q as v,a as s,B as w,aG as x,ac as B,E as b,a2 as y,__tla as F}from"./index-1f518666.js";import{E as G,a as H,__tla as M}from"./el-carousel-item-145bf74f.js";import{E as P,__tla as Q}from"./el-image-1ae80d1a.js";import{__tla as S}from"./el-image-viewer-91778fd6.js";let k,q=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return S}catch{}})()]).then(async()=>{let h;h={class:"flex flex-row flex-wrap"},k=z({name:"MenuSwiper",__name:"index",props:{property:{}},setup(C){const a=C,p=o([]),_=o(0),n=o(0),d=o("");return A(()=>a.property,()=>{d.value=1/a.property.column*100+"%",n.value=32+(a.property.layout==="iconText"?62:42),_.value=a.property.row*n.value;const c=a.property.row*a.property.column;p.value=[];let r=[];for(const i of a.property.list)r.length===c&&(r=[]),r.length===0&&p.value.push(r),r.push(i)},{immediate:!0,deep:!0}),(c,r)=>{const i=P,E=G,j=H;return t(),u(j,{height:`${s(_)}px`,autoplay:!1,arrow:"hover","indicator-position":"outside"},{default:m(()=>[(t(!0),l(g,null,v(s(p),(T,U)=>(t(),u(E,{key:U},{default:m(()=>[w("div",h,[(t(!0),l(g,null,v(T,(e,$)=>{var f;return t(),l("div",{key:$,class:"relative flex flex-col items-center justify-center",style:x({width:s(d),height:`${s(n)}px`})},[w("div",{class:B(["relative","h-42px w-42px"])},[(f=e.badge)!=null&&f.show?(t(),l("span",{key:0,class:"absolute right--10px top--10px z-1 h-20px rounded-10px p-x-6px text-center text-12px leading-20px",style:x({color:e.badge.textColor,backgroundColor:e.badge.bgColor})},b(e.badge.text),5)):y("",!0),e.iconUrl?(t(),u(i,{key:1,src:e.iconUrl,class:"h-full w-full"},null,8,["src"])):y("",!0)],2),c.property.layout==="iconText"?(t(),l("span",{key:0,class:"text-12px",style:x({color:e.titleColor,height:"20px",lineHeight:"20px"})},b(e.title),5)):y("",!0)],4)}),128))])]),_:2},1024))),128))]),_:1},8,["height"])}}})});export{q as __tla,k as default};
|