可视化地呈现时间流信息。
# 基础用法
ETimeLine
组件须配合 ETimeLineItem
组件一起使用。
# 设置 icon 颜色和制定 icon 样式
ETimeLineItem
组件设置 color
属性可配置时间线的 icon 颜色,通过具名 slot
更改 icon 的样式。
# 特殊配色
组件库提供了几种配色,给 ETimeLineItem
组件设置 color
属性实现。
# 幽灵节点
设置 pending
属性可以让最后一个节点变为幽灵节点,可用于一些特殊功能需求。
# ETimeLine
# Props
Name | Description | Type | Required | Default |
---|---|---|---|---|
pending | 指定是否最后一个节点为幽灵节点 | Boolean | false | - |
# Slots
Name | Description | Default Slot Content |
---|---|---|
default | - | - |
# ETimeLineItem
# Props
Name | Description | Type | Required | Default |
---|---|---|---|---|
color | 圆圈颜色,可选值为default,primary、error、warn、success,或自定义色值 | String | false | default |
# Slots
Name | Description | Default Slot Content |
---|---|---|
dot | - | - |
default | - | - |