index-949993da.js 1.5 KB

1
  1. import{d as f,r as g,o as a,c as r,f as e,w as i,F as v,n as b,q as k,t as n,a as w,O as j,_ as C,__tla as E}from"./index-2eab2d23.js";import{E as q,a as F,__tla as O}from"./el-carousel-item-052c6ff5.js";import{E as P,__tla as U}from"./el-image-2171f3ff.js";import{__tla as z}from"./el-image-viewer-5d14bc77.js";let c,A=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return z}catch{}})()]).then(async()=>{let s,l,p;s={key:0,class:"h-250px flex items-center justify-center bg-gray-3"},l={key:1,class:"relative"},p={key:0,class:"absolute bottom-10px right-10px rounded-xl bg-black p-x-8px p-y-2px text-10px text-white opacity-40"},c=f({name:"Carousel",__name:"index",props:{property:{}},setup(B){const o=g(0),y=t=>{o.value=t+1};return(t,D)=>{const _=C,u=P,m=q,d=F;return t.property.items.length===0?(a(),r("div",s,[e(_,{icon:"tdesign:image",class:"text-gray-8 text-120px!"})])):(a(),r("div",l,[e(d,{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:i(()=>[(a(!0),r(v,null,b(t.property.items,(x,h)=>(a(),k(m,{key:h},{default:i(()=>[e(u,{class:"h-full w-full",src:x.imgUrl},null,8,["src"])]),_:2},1024))),128))]),_:1},8,["type","autoplay","interval","indicator-position"]),t.property.indicator==="number"?(a(),r("div",p,n(w(o))+" / "+n(t.property.items.length),1)):j("",!0)]))}}})});export{A as __tla,c as default};