1 |
- import{d as H,r as o,M as R,o as t,x as c,w as g,c as l,F as v,v as w,a as s,h as b,au as x,a0 as S,t as k,R as _,_ as T,__tla as $}from"./index-57157669.js";import{E as q,a as F,__tla as O}from"./el-carousel-item-7ac04cb0.js";import{E as P,__tla as X}from"./el-image-fe28d1a2.js";import{__tla as A}from"./el-image-viewer-80427f3c.js";let C,B=Promise.all([(()=>{try{return $}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return A}catch{}})()]).then(async()=>{let h,y;h={class:"flex flex-row flex-wrap"},y=H({name:"MenuSwiper",__name:"index",props:{property:{type:Object,required:!0}},setup(j){const a=j,p=o([]),d=o(0),n=o(0),f=o("");return R(()=>a.property,()=>{f.value=1/a.property.column*100+"%",n.value=32+(a.property.layout==="iconText"?62:42),d.value=a.property.row*n.value;const i=a.property.row*a.property.column;p.value=[];let r=[];for(const u of a.property.list)r.length===i&&(r=[]),r.length===0&&p.value.push(r),r.push(u)},{immediate:!0,deep:!0}),(i,r)=>{const u=P,E=q,M=F;return t(),c(M,{height:`${s(d)}px`,autoplay:!1,arrow:"hover","indicator-position":"outside"},{default:g(()=>[(t(!0),l(v,null,w(s(p),(U,z)=>(t(),c(E,{key:z},{default:g(()=>[b("div",h,[(t(!0),l(v,null,w(U,(e,D)=>{var m;return t(),l("div",{key:D,class:"relative flex flex-col items-center justify-center",style:x({width:s(f),height:`${s(n)}px`})},[b("div",{class:S(["relative","h-42px w-42px"])},[(m=e.badge)!=null&&m.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})},k(e.badge.text),5)):_("",!0),e.iconUrl?(t(),c(u,{key:1,src:e.iconUrl,class:"h-full w-full"},null,8,["src"])):_("",!0)],2),i.property.layout==="iconText"?(t(),l("span",{key:0,class:"text-12px",style:x({color:e.titleColor,height:"20px",lineHeight:"20px"})},k(e.title),5)):_("",!0)],4)}),128))])]),_:2},1024))),128))]),_:1},8,["height"])}}}),C=T(y,[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-business/src/components/DiyEditor/components/mobile/MenuSwiper/index.vue"]])});export{B as __tla,C as default};
|