1 |
- import{d as m,aD as d,aq as g,bO as b,aE as p,aB as k,bH as h,e as w,o as l,c as i,k as c,Z as s,a,av as T,j as u,w as S,N as B,aN as E,l as n,t as f,aF as $,aG as _,aK as j}from"./index-34852970.js";const z=m({name:"ElTimeline",setup(r,{slots:o}){const e=d("timeline");return g("timeline",o),()=>b("ul",{class:[e.b()]},[p(o,"default")])}}),I=k({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:h},hollow:{type:Boolean,default:!1}}),N=m({name:"ElTimelineItem"});var v=$(m({...N,props:I,setup(r){const o=r,e=d("timeline-item"),y=w(()=>[e.e("node"),e.em("node",o.size||""),e.em("node",o.type||""),e.is("hollow",o.hollow)]);return(t,C)=>(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(y)),style:T({backgroundColor:t.color})},[t.icon?(l(),u(a(E),{key:0,class:s(a(e).e("icon"))},{default:S(()=>[(l(),u(B(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"]]);const q=_(z,{TimelineItem:v}),x=j(v);export{x as E,q as a};
|