1 |
- import{d as g,r as v,o as a,c as e,f as r,w as n,F as b,q as k,v as j,t as c,a as w,Q as C,j as E,_ as q,__tla as z}from"./index-4133fd21.js";import{E as D,a as F,__tla as O}from"./el-carousel-item-844e48c4.js";import{E as P,__tla as Q}from"./el-image-a02e6b26.js";import{__tla as U}from"./el-image-viewer-7cfb9cac.js";let y,A=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return U}catch{}})()]).then(async()=>{let s,o,l,i;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"},i=g({name:"Carousel",__name:"index",props:{property:{type:Object,required:!0}},setup(B){const p=v(0),u=t=>{p.value=t+1};return(t,G)=>{const _=E,m=P,d=D,x=F;return t.property.items.length===0?(a(),e("div",s,[r(_,{icon:"tdesign:image",class:"text-gray-8 text-120px!"})])):(a(),e("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:u},{default:n(()=>[(a(!0),e(b,null,k(t.property.items,(h,f)=>(a(),j(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"?(a(),e("div",l,c(w(p))+" / "+c(t.property.items.length),1)):C("",!0)]))}}}),y=q(i,[["__file","D:/zhongxing/mall-newfeifan-zx-business/src/components/DiyEditor/components/mobile/Carousel/index.vue"]])});export{A as __tla,y as default};
|