Elements

组件

时间线 Timeline

Timeline:时间线。Root 承载有序主线,Item 是一个时间点,Marker 是主线经过的节点,Content 是该时间点的内容;标记之间的发丝线由样式表绘制。

#基础用法

timeline/basic Vue React
  1. Sketch — the first brush line settles on the paper.
  2. Ink — the strokes deepen and the hierarchy appears.
  3. Seal — the red stamp closes the finished work.
timeline/horizontal Vue React
  1. Ground
    The stone is squared
  2. Ink
    The pigment meets the water
  3. Stroke
    The hand commits
  4. Seal
    The name closes the work

#属性

#TimelineRoot

时间线容器,决定时间点纵向排列还是从左到右排列。

属性类型默认值描述
orientationString as PropType<"vertical" | "horizontal">"vertical"—

#TimelineItem

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#TimelineMarker

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#TimelineContent

纯造型的部件——自身没有属性,沿用部件结构的共享样式。