index-1414e6c3.js 2.1 KB

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