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 #1282026-05-08 10:14
- CI 通过构建 / 测试 / 类型检查全部通过2026-05-08 10:18
- 触发 staging 部署2026-05-08 10:30
- 收到性能回归告警/api/list P99 上升 220ms2026-05-08 11:02
- 回滚到上一版本2026-05-08 11:08
<CfTimeline :items="items" /> <CfTimeline items={items} /> API
| Prop | Type | Default | Description |
|---|---|---|---|
items | TimelineItem[] | — | Node list |
size | 'sm' | 'md' | 'lg' | 'md' | Node font size and dot size |
mode | 'left' | 'right' | 'alternate' | 'left' | Content position relative to the connector |
reverse | boolean | false | Reverse order (newest first) |
TimelineItem
| Field | Type | Description |
|---|---|---|
key | string | number | Unique key, used for v-for / map key |
title | string | Main title |
content | string | Detailed description |
time | string | Timestamp text |
color | 'primary' | 'success' | 'warning' | 'danger' | 'neutral' | Dot color |
反馈与讨论
Timeline · Discussion