mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
730 B
730 B
order | title | ||||
---|---|---|---|---|---|
2 |
|
zh-CN
在最后位置添加一个幽灵节点,表示时间轴未完成,还在记录过程中。可以指定 pending={true}
或者 pending={一个 React 元素}
。
en-US
When the timeline is incomplete and ongoing, put a ghost node at last. set pending={true}
or pending={a React Element}
。
import { Timeline } from 'antd';
ReactDOM.render(
<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>
</Timeline>
, mountNode);