1 |
- import{d as f,r as g,o as a,c as r,f as e,A as i,F as v,Q as b,C as k,E as n,a as w,a2 as C,_ as E,__tla as j}from"./index-a9d538d5.js";import{E as A,a as F,__tla as P}from"./el-carousel-item-4829557d.js";import{E as Q,__tla as U}from"./el-image-2dadd73e.js";import{__tla as q}from"./el-image-viewer-2e77a3e7.js";let c,z=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return q}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 _=E,u=Q,m=A,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)):C("",!0)]))}}})});export{z as __tla,c as default};
|