el-timeline-item-248613ef.js 2.0 KB

1
  1. import{d as m,aM as u,p as T,b4 as w,aN as p,aK as S,bh as $,e as B,o as l,c as i,B as c,ac as s,a,aG as E,C as y,A as x,$ as z,aF as C,a2 as n,E as f,aO as I,aP as P,aT as A,__tla as F}from"./index-6e0fa573.js";let v,g,G=Promise.all([(()=>{try{return F}catch{}})()]).then(async()=>{const h=m({name:"ElTimeline",setup(d,{slots:o}){const e=u("timeline");return T("timeline",o),()=>w("ul",{class:[e.b()]},[p(o,"default")])}}),_=S({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:$},hollow:{type:Boolean,default:!1}}),b=m({name:"ElTimelineItem"});var r=I(m({...b,props:_,setup(d){const o=d,e=u("timeline-item"),k=B(()=>[e.e("node"),e.em("node",o.size||""),e.em("node",o.type||""),e.is("hollow",o.hollow)]);return(t,K)=>(l(),i("li",{class:s([a(e).b(),{[a(e).e("center")]:t.center}])},[c("div",{class:s(a(e).e("tail"))},null,2),t.$slots.dot?n("v-if",!0):(l(),i("div",{key:0,class:s(a(k)),style:E({backgroundColor:t.color})},[t.icon?(l(),y(a(C),{key:0,class:s(a(e).e("icon"))},{default:x(()=>[(l(),y(z(t.icon)))]),_:1},8,["class"])):n("v-if",!0)],6)),t.$slots.dot?(l(),i("div",{key:1,class:s(a(e).e("dot"))},[p(t.$slots,"dot")],2)):n("v-if",!0),c("div",{class:s(a(e).e("wrapper"))},[t.hideTimestamp||t.placement!=="top"?n("v-if",!0):(l(),i("div",{key:0,class:s([a(e).e("timestamp"),a(e).is("top")])},f(t.timestamp),3)),c("div",{class:s(a(e).e("content"))},[p(t.$slots,"default")],2),t.hideTimestamp||t.placement!=="bottom"?n("v-if",!0):(l(),i("div",{key:1,class:s([a(e).e("timestamp"),a(e).is("bottom")])},f(t.timestamp),3))],2)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);g=P(h,{TimelineItem:r}),v=A(r)});export{v as E,G as __tla,g as a};