1 |
- import{d as m,aN as u,p as w,b5 as T,aO as p,aL as S,bi as B,e as E,o as l,c as o,B as r,ad as s,a,aH as $,C as y,A as x,a0 as z,aG as C,a3 as n,E as f,aP as I,aQ as P,aU as A,__tla as G}from"./index-0b2503c4.js";let v,g,H=Promise.all([(()=>{try{return G}catch{}})()]).then(async()=>{const _=m({name:"ElTimeline",setup(d,{slots:i}){const e=u("timeline");return w("timeline",i),()=>T("ul",{class:[e.b()]},[p(i,"default")])}}),b=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:B},hollow:{type:Boolean,default:!1}}),h=m({name:"ElTimelineItem"});var c=I(m({...h,props:b,setup(d){const i=d,e=u("timeline-item"),k=E(()=>[e.e("node"),e.em("node",i.size||""),e.em("node",i.type||""),e.is("hollow",i.hollow)]);return(t,L)=>(l(),o("li",{class:s([a(e).b(),{[a(e).e("center")]:t.center}])},[r("div",{class:s(a(e).e("tail"))},null,2),t.$slots.dot?n("v-if",!0):(l(),o("div",{key:0,class:s(a(k)),style:$({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(),o("div",{key:1,class:s(a(e).e("dot"))},[p(t.$slots,"dot")],2)):n("v-if",!0),r("div",{class:s(a(e).e("wrapper"))},[t.hideTimestamp||t.placement!=="top"?n("v-if",!0):(l(),o("div",{key:0,class:s([a(e).e("timestamp"),a(e).is("top")])},f(t.timestamp),3)),r("div",{class:s(a(e).e("content"))},[p(t.$slots,"default")],2),t.hideTimestamp||t.placement!=="bottom"?n("v-if",!0):(l(),o("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(_,{TimelineItem:c}),v=A(c)});export{v as E,H as __tla,g as a};
|