el-timeline-item-e925b025.js 2.0 KB

1
  1. import{d as m,aG as u,at as w,bQ as S,aH as p,aE as T,bJ as E,e as $,o as l,c as i,j as r,a1 as s,a,ay as B,k as y,w as I,P as z,aQ as J,S as n,t as f,aI as P,aJ as Q,aN as j,__tla as x}from"./index-2f799233.js";let v,g,C=Promise.all([(()=>{try{return x}catch{}})()]).then(async()=>{const _=m({name:"ElTimeline",setup(d,{slots:o}){const e=u("timeline");return w("timeline",o),()=>S("ul",{class:[e.b()]},[p(o,"default")])}}),b=T({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:E},hollow:{type:Boolean,default:!1}}),h=m({name:"ElTimelineItem"});var c=P(m({...h,props:b,setup(d){const o=d,e=u("timeline-item"),k=$(()=>[e.e("node"),e.em("node",o.size||""),e.em("node",o.type||""),e.is("hollow",o.hollow)]);return(t,G)=>(l(),i("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(),i("div",{key:0,class:s(a(k)),style:B({backgroundColor:t.color})},[t.icon?(l(),y(a(J),{key:0,class:s(a(e).e("icon"))},{default:I(()=>[(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),r("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)),r("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=Q(_,{TimelineItem:c}),v=j(c)});export{v as E,C as __tla,g as a};