import{d as m,f as r,a_ as g,bW as b,j as p,e as h,aY as k,ad as T,o as l,c as o,C as c,n as a,a as s,aB as w,g as u,B,aP as S,b1 as _,h as n,D as f,_ as $,q as E,s as j}from"./index-BP6bNRoi.js";const z=m({name:"ElTimeline",setup(d,{slots:i}){const e=r("timeline");return g("timeline",i),()=>b("ul",{class:[e.b()]},[p(i,"default")])}}),C=h({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:k},hollow:{type:Boolean,default:!1}}),I=m({name:"ElTimelineItem"});var y=$(m({...I,props:C,setup(d){const i=d,e=r("timeline-item"),v=T(()=>[e.e("node"),e.em("node",i.size||""),e.em("node",i.type||""),e.is("hollow",i.hollow)]);return(t,D)=>(l(),o("li",{class:a([s(e).b(),{[s(e).e("center")]:t.center}])},[c("div",{class:a(s(e).e("tail"))},null,2),t.$slots.dot?n("v-if",!0):(l(),o("div",{key:0,class:a(s(v)),style:w({backgroundColor:t.color})},[t.icon?(l(),u(s(_),{key:0,class:a(s(e).e("icon"))},{default:B(()=>[(l(),u(S(t.icon)))]),_:1},8,["class"])):n("v-if",!0)],6)),t.$slots.dot?(l(),o("div",{key:1,class:a(s(e).e("dot"))},[p(t.$slots,"dot")],2)):n("v-if",!0),c("div",{class:a(s(e).e("wrapper"))},[t.hideTimestamp||t.placement!=="top"?n("v-if",!0):(l(),o("div",{key:0,class:a([s(e).e("timestamp"),s(e).is("top")])},f(t.timestamp),3)),c("div",{class:a(s(e).e("content"))},[p(t.$slots,"default")],2),t.hideTimestamp||t.placement!=="bottom"?n("v-if",!0):(l(),o("div",{key:1,class:a([s(e).e("timestamp"),s(e).is("bottom")])},f(t.timestamp),3))],2)],2))}}),[["__file","timeline-item.vue"]]);const q=E(z,{TimelineItem:y}),x=j(y);export{x as E,q as a};
|