2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 2
|
2016-07-04 10:49:04 +08:00
|
|
|
title:
|
|
|
|
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
|
|
|
|
|
2016-01-14 16:43:48 +08:00
|
|
|
在最后位置添加一个幽灵节点,表示时间轴未完成,还在记录过程中。可以指定 `pending={true}` 或者 `pending={一个 React 元素}`。
|
2015-09-01 21:15:31 +08:00
|
|
|
|
2016-07-04 10:49:04 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
When the timeline is incomplete and ongoing, put a ghost node at last. set `pending={true}` or `pending={a React Element}`。
|
|
|
|
|
2017-01-19 15:19:03 +08:00
|
|
|
````__react
|
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-10-01 08:04:13 +08:00
|
|
|
<Timeline pending={<a href="#">See more</a>}>
|
|
|
|
<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
|
|
|
````
|