mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-14 08:51:26 +08:00
751bf40f60
* feat: update timeline to data driven
65 lines
1.4 KiB
TypeScript
65 lines
1.4 KiB
TypeScript
import React from 'react';
|
|
import { SmileOutlined } from '@ant-design/icons';
|
|
import { Timeline } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Timeline
|
|
items={[
|
|
{
|
|
color: 'green',
|
|
children: 'Create a services site 2015-09-01',
|
|
},
|
|
{
|
|
color: 'green',
|
|
children: 'Create a services site 2015-09-01',
|
|
},
|
|
{
|
|
color: 'red',
|
|
children: (
|
|
<>
|
|
<p>Solve initial network problems 1</p>
|
|
<p>Solve initial network problems 2</p>
|
|
<p>Solve initial network problems 3 2015-09-01</p>
|
|
</>
|
|
),
|
|
},
|
|
{
|
|
children: (
|
|
<>
|
|
<p>Technical testing 1</p>
|
|
<p>Technical testing 2</p>
|
|
<p>Technical testing 3 2015-09-01</p>
|
|
</>
|
|
),
|
|
},
|
|
{
|
|
color: 'gray',
|
|
children: (
|
|
<>
|
|
<p>Technical testing 1</p>
|
|
<p>Technical testing 2</p>
|
|
<p>Technical testing 3 2015-09-01</p>
|
|
</>
|
|
),
|
|
},
|
|
{
|
|
color: 'gray',
|
|
children: (
|
|
<>
|
|
<p>Technical testing 1</p>
|
|
<p>Technical testing 2</p>
|
|
<p>Technical testing 3 2015-09-01</p>
|
|
</>
|
|
),
|
|
},
|
|
{
|
|
color: '#00CCFF',
|
|
dot: <SmileOutlined />,
|
|
children: <p>Custom color testing</p>,
|
|
},
|
|
]}
|
|
/>
|
|
);
|
|
|
|
export default App;
|