2016-05-07 02:13:08 +08:00
|
|
|
---
|
|
|
|
order: 4
|
2018-07-12 11:35:50 +08:00
|
|
|
title:
|
2016-07-04 10:49:04 +08:00
|
|
|
zh-CN: 自定义时间轴点
|
|
|
|
en-US: Custom
|
2016-05-07 02:13:08 +08:00
|
|
|
---
|
|
|
|
|
2016-07-04 10:49:04 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-05-07 02:13:08 +08:00
|
|
|
可以设置为图标或其他自定义元素。
|
|
|
|
|
2018-07-12 11:35:50 +08:00
|
|
|
## en-US
|
2016-07-04 10:49:04 +08:00
|
|
|
|
|
|
|
Set a node as an icon or other custom element.
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
````jsx
|
2016-05-07 02:13:08 +08:00
|
|
|
import { Timeline, Icon } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<Timeline>
|
2016-10-01 08:04:27 +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 dot={<Icon type="clock-circle-o" style={{ fontSize: '16px' }} />} color="red">Technical testing 2015-09-01</Timeline.Item>
|
|
|
|
<Timeline.Item>Network problems being solved 2015-09-01</Timeline.Item>
|
2018-06-27 15:55:04 +08:00
|
|
|
</Timeline>,
|
|
|
|
mountNode);
|
2016-05-07 02:13:08 +08:00
|
|
|
````
|