2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 1
|
2019-05-07 14:57:32 +08:00
|
|
|
title:
|
2016-07-04 10:49:04 +08:00
|
|
|
zh-CN: 圆圈颜色
|
|
|
|
en-US: Color
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-09-01 21:15:31 +08:00
|
|
|
|
2016-07-04 10:49:04 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-09-07 10:43:48 +08:00
|
|
|
圆圈颜色,绿色用于已完成、成功状态,红色表示告警或错误状态,蓝色可表示正在进行或其他默认状态。
|
2015-09-01 21:15:31 +08:00
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
## en-US
|
2016-07-04 10:49:04 +08:00
|
|
|
|
|
|
|
Set the color of circles. `green` means completed or success status, `red` means warning or error, and `blue` means ongoing or other default status.
|
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Timeline } from 'antd';
|
2015-09-01 21:15:31 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(
|
2016-04-29 12:13:27 +08:00
|
|
|
<Timeline>
|
2016-10-01 08:03:50 +08:00
|
|
|
<Timeline.Item color="green">Create a services site 2015-09-01</Timeline.Item>
|
|
|
|
<Timeline.Item color="green">Create a services site 2015-09-01</Timeline.Item>
|
2016-04-29 12:13:27 +08:00
|
|
|
<Timeline.Item color="red">
|
2016-10-01 08:03:50 +08:00
|
|
|
<p>Solve initial network problems 1</p>
|
|
|
|
<p>Solve initial network problems 2</p>
|
|
|
|
<p>Solve initial network problems 3 2015-09-01</p>
|
2016-04-29 12:13:27 +08:00
|
|
|
</Timeline.Item>
|
|
|
|
<Timeline.Item>
|
2016-10-01 08:03:50 +08:00
|
|
|
<p>Technical testing 1</p>
|
|
|
|
<p>Technical testing 2</p>
|
|
|
|
<p>Technical testing 3 2015-09-01</p>
|
2016-04-29 12:13:27 +08:00
|
|
|
</Timeline.Item>
|
2018-06-27 15:55:04 +08:00
|
|
|
</Timeline>,
|
2019-05-07 14:57:32 +08:00
|
|
|
mountNode,
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|