Timeline 时间轴
小于 1 分钟
Timeline 时间轴
时间轴。
代码演示
基本用法
基本用法。
右侧时间轴点 时间轴点可以在内容的右边。
交替展现 内容在时间轴两侧轮流出现。
label 在节点旁边添加标签
API
Timeline props
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
mode | 通过设置 mode 可以改变时间轴和内容的相对位置 | left | alternate | right | |
pending | 指定最后一个幽灵节点是否存在或内容 | boolean|string|slot | false |
pendingDot | 当最后一个幽灵节点存在時,指定其时间图点 | string|slot | <LoadingOutlined /> |
reverse | 节点排序 | boolean | false |
Timeline.Item props
时间轴的每一个节点。
参数 | 说明 | 类型 | 默认值 | 版本 |
---|---|---|---|---|
color | 指定圆圈颜色 blue, red, green ,或自定义的色值 | string | blue | |
dot | 自定义时间轴点 | string|slot | - | |
label | 设置标签 | string | slot | - | 3.0 |
position | 自定义节点位置 | left | right | - |