index-0f67463d.js 1.7 KB

1
  1. import{d as g,r as v,o as e,c as a,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 D}from"./index-00ec7b2b.js";import{E as U,a as z,__tla as F}from"./el-carousel-item-8db7e634.js";import{E as H,__tla as O}from"./el-image-8fc0fe83.js";import{__tla as P}from"./el-image-viewer-10754140.js";let u,Q=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return P}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(R){const i=v(0),y=t=>{i.value=t+1};return(t,X)=>{const _=E,m=H,d=U,x=z;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,(f,h)=>(e(),j(d,{key:h},{default:n(()=>[r(m,{class:"h-full w-full",src:f.imgUrl},null,8,["src"])]),_:2},1024))),128))]),_:1},8,["type","autoplay","interval","indicator-position"]),t.property.indicator==="number"?(e(),a("div",l,c(w(i))+" / "+c(t.property.items.length),1)):C("",!0)]))}}}),u=q(p,[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-business/src/components/DiyEditor/components/mobile/Carousel/index.vue"]])});export{Q as __tla,u as default};