1 |
- import{d as g,r as v,o as e,c as a,g as r,w as n,F as b,v as k,x as w,t as c,a as j,R as C,k as E,_ as D,__tla as R}from"./index-57157669.js";import{E as U,a as q,__tla as z}from"./el-carousel-item-7ac04cb0.js";import{E as F,__tla as H}from"./el-image-fe28d1a2.js";import{__tla as O}from"./el-image-viewer-80427f3c.js";let u,P=Promise.all([(()=>{try{return R}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return O}catch{}})()]).then(async()=>{let s,o,l,p;s={key:0,class:"h-250px flex items-center justify-center bg-gray-3"},o={key:1,class:"relative"},l={key:0,class:"absolute bottom-10px right-10px rounded-xl bg-black p-x-8px p-y-2px text-10px text-white opacity-40"},p=g({name:"Carousel",__name:"index",props:{property:{type:Object,required:!0}},setup(X){const i=v(0),y=t=>{i.value=t+1};return(t,A)=>{const _=E,m=F,d=U,x=q;return t.property.items.length===0?(e(),a("div",s,[r(_,{icon:"tdesign:image",class:"text-gray-8 text-120px!"})])):(e(),a("div",o,[r(x,{height:"174px",type:t.property.type==="card"?"card":"",autoplay:t.property.autoplay,interval:1e3*t.property.interval,"indicator-position":t.property.indicator==="number"?"none":void 0,onChange:y},{default:n(()=>[(e(!0),a(b,null,k(t.property.items,(h,f)=>(e(),w(d,{key:f},{default:n(()=>[r(m,{class:"h-full w-full",src:h.imgUrl},null,8,["src"])]),_:2},1024))),128))]),_:1},8,["type","autoplay","interval","indicator-position"]),t.property.indicator==="number"?(e(),a("div",l,c(j(i))+" / "+c(t.property.items.length),1)):C("",!0)]))}}}),u=D(p,[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-business/src/components/DiyEditor/components/mobile/Carousel/index.vue"]])});export{P as __tla,u as default};
|