2016-03-31 09:40:55 +08:00
---
order: 2
2017-12-27 17:54:12 +08:00
title:
2016-07-04 10:49:04 +08:00
zh-CN: 最后一个
en-US: Last node
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
2018-03-09 15:03:19 +08:00
当任务状态正在发生,还在记录过程中,可用幽灵节点来表示当前的时间节点(用于时间正序排列)。当 pending 值为 false ,可用定制元件替换默认时间图点。
2017-12-27 17:54:12 +08:00
2016-07-04 10:49:04 +08:00
## en-US
2018-03-09 15:03:19 +08:00
When the timeline is incomplete and ongoing, put a ghost node at last. set `pending={true}` or `pending={a React Element}` . Used in ascend chronological order. When `pending` is not false, set `pendingDot={a React Element}` to replace the default pending dot.
2016-07-04 10:49:04 +08:00
2017-02-13 10:55:53 +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(
2018-01-09 17:42:31 +08:00
< Timeline pending = "Recording..." >
2016-10-01 08:04:13 +08:00
< Timeline.Item > Create a services site 2015-09-01< / Timeline.Item >
< Timeline.Item > Solve initial network problems 2015-09-01< / Timeline.Item >
< Timeline.Item > Technical testing 2015-09-01< / Timeline.Item >
2016-04-29 12:13:27 +08:00
< / Timeline >
2015-12-29 12:08:58 +08:00
, mountNode);
2015-09-01 21:15:31 +08:00
````