index-22b334b7.js 1.6 KB

1
  1. import{d as g,r as b,o as a,c as e,i as r,w as n,F as v,C as k,k as w,t as c,a as C,S as j,n as E,_ as z,__tla as D}from"./index-2f799233.js";import{E as q,a as F,__tla as O}from"./el-carousel-item-182a175b.js";import{E as P,__tla as S}from"./el-image-4d26fa76.js";import{__tla as U}from"./el-image-viewer-8e9e3571.js";let y,A=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return U}catch{}})()]).then(async()=>{let s,l,o,i;s={key:0,class:"h-250px flex items-center justify-center bg-gray-3"},l={key:1,class:"relative"},o={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=b(0),_=t=>{p.value=t+1};return(t,G)=>{const u=E,m=P,d=q,x=F;return t.property.items.length===0?(a(),e("div",s,[r(u,{icon:"tdesign:image",class:"text-gray-8 text-120px!"})])):(a(),e("div",l,[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:_},{default:n(()=>[(a(!0),e(v,null,k(t.property.items,(h,f)=>(a(),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"?(a(),e("div",o,c(C(p))+" / "+c(t.property.items.length),1)):j("",!0)]))}}}),y=z(i,[["__file","D:/zx/mall-newfeifan-zx-business/src/components/DiyEditor/components/mobile/Carousel/index.vue"]])});export{A as __tla,y as default};