el-timeline-item-BhO7njDc.js 1.8 KB

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