ant-design/components/timeline/demo/pending.md

27 lines
895 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 2
2017-12-27 17:54:12 +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
## zh-CN
当任务状态正在发生,还在记录过程中,可用幽灵节点来表示当前的时间节点(用于时间正序排列)。当 pending 值为 false ,可用定制元件替换默认时间图点。
2017-12-27 17:54:12 +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}`. Used in ascend chronological order. When `pending` is not false, set `pendingDot={a React Element}` to replace the default pending dot.
2017-02-13 10:55:53 +08:00
````jsx
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...">
<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>
</Timeline>
, mountNode);
2015-09-01 21:15:31 +08:00
````