Preview Updated 2026-05-10

Timeline

Sequential event stream with dots, connectors, and timestamps. Common in changelogs, audit trails, and release notes.

Basic usage

Each entry in items is a node. color controls the dot color (primary / success / warning / danger / neutral).

  • 提交了 PR #128
    2026-05-08 10:14
  • CI 通过
    构建 / 测试 / 类型检查全部通过
    2026-05-08 10:18
  • 触发 staging 部署
    2026-05-08 10:30
  • 收到性能回归告警
    /api/list P99 上升 220ms
    2026-05-08 11:02
  • 回滚到上一版本
    2026-05-08 11:08
<CfTimeline :items="items" />
<CfTimeline items={items} />

API

PropTypeDefaultDescription
itemsTimelineItem[]Node list
size'sm' | 'md' | 'lg''md'Node font size and dot size
mode'left' | 'right' | 'alternate''left'Content position relative to the connector
reversebooleanfalseReverse order (newest first)

TimelineItem

FieldTypeDescription
keystring | numberUnique key, used for v-for / map key
titlestringMain title
contentstringDetailed description
timestringTimestamp text
color'primary' | 'success' | 'warning' | 'danger' | 'neutral'Dot color

反馈与讨论

Timeline · Discussion

0
0 / 600
一键发送
正在加载评论...