mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
1cb1a7ae58
* feat: css variables to token * chore: rename token * feat: add color token * feat: add debug demo * chore: update snapshot * chore: rename demo * chore: rename token * chore: recover tailWidth * chore: rename token demo filename * chore: update snap * fix: CN-docs * fix: US-docs * chore: rename demo --------- Co-authored-by: zhangjianxiong <zhangjx@tsintergy.com>
38 lines
761 B
TypeScript
38 lines
761 B
TypeScript
import { ConfigProvider, Timeline } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
Timeline: {
|
|
tailColor: 'red',
|
|
tailWidth: 10,
|
|
dotBorderWidth: 1,
|
|
dotBg: 'green',
|
|
itemPaddingBottom: 10,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Timeline
|
|
items={[
|
|
{
|
|
children: 'Create a services site 2015-09-01',
|
|
},
|
|
{
|
|
children: 'Solve initial network problems 2015-09-01',
|
|
},
|
|
{
|
|
children: 'Technical testing 2015-09-01',
|
|
},
|
|
{
|
|
children: 'Network problems being solved 2015-09-01',
|
|
},
|
|
]}
|
|
/>
|
|
</ConfigProvider>
|
|
);
|
|
|
|
export default App;
|