index-35265057.js 1.9 KB

1
  1. import{d as U,r as o,aL as q,o as t,v as u,w as g,c as r,F as m,q as v,a as s,g as w,an as x,S as z,t as b,$ as y,__tla as F}from"./index-b9aa3289.js";import{E as H,a as L,__tla as M}from"./el-carousel-item-e82d46b5.js";import{E as P,__tla as A}from"./el-image-b4e8782c.js";import{__tla as B}from"./el-image-viewer-fa37cc69.js";let k,D=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return B}catch{}})()]).then(async()=>{let h;h={class:"flex flex-row flex-wrap"},k=U({name:"MenuSwiper",__name:"index",props:{property:{}},setup(C){const a=C,p=o([]),_=o(0),n=o(0),d=o("");return q(()=>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 i=a.property.row*a.property.column;p.value=[];let l=[];for(const c of a.property.list)l.length===i&&(l=[]),l.length===0&&p.value.push(l),l.push(c)},{immediate:!0,deep:!0}),(i,l)=>{const c=P,$=H,j=L;return t(),u(j,{height:`${s(_)}px`,autoplay:!1,arrow:"hover","indicator-position":"outside"},{default:g(()=>[(t(!0),r(m,null,v(s(p),(E,S)=>(t(),u($,{key:S},{default:g(()=>[w("div",h,[(t(!0),r(m,null,v(E,(e,T)=>{var f;return t(),r("div",{key:T,class:"relative flex flex-col items-center justify-center",style:x({width:s(d),height:`${s(n)}px`})},[w("div",{class:z(["relative","h-42px w-42px"])},[(f=e.badge)!=null&&f.show?(t(),r("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(c,{key:1,src:e.iconUrl,class:"h-full w-full"},null,8,["src"])):y("",!0)],2),i.property.layout==="iconText"?(t(),r("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{D as __tla,k as default};