mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 18:09:22 +08:00
65f067eb13
* feat: support items * feat: update demo * test: update package * test: update use type * test: update for test * test: update for lint * feat: update doc * test: update for lint * test: update for lint * test: update for lint * test: add deprecated dome * test: add deprecated dome * doc: update doc * feat: update package * test: add test case
73 lines
1.3 KiB
Markdown
73 lines
1.3 KiB
Markdown
---
|
|
order: 8
|
|
title:
|
|
zh-CN: 点状步骤条
|
|
en-US: Dot Style
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
包含步骤点的进度条。
|
|
|
|
## en-US
|
|
|
|
Steps with progress dot style.
|
|
|
|
```tsx
|
|
import { Divider, Steps } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Steps
|
|
progressDot
|
|
current={1}
|
|
items={[
|
|
{
|
|
title: 'Finished',
|
|
description: 'This is a description.',
|
|
},
|
|
{
|
|
title: 'In Progress',
|
|
description: 'This is a description.',
|
|
},
|
|
{
|
|
title: 'Waiting',
|
|
description: 'This is a description.',
|
|
},
|
|
]}
|
|
/>
|
|
<Divider />
|
|
<Steps
|
|
progressDot
|
|
current={1}
|
|
direction="vertical"
|
|
items={[
|
|
{
|
|
title: 'Finished',
|
|
description: 'This is a description. This is a description.',
|
|
},
|
|
{
|
|
title: 'Finished',
|
|
description: 'This is a description. This is a description.',
|
|
},
|
|
{
|
|
title: 'In Progress',
|
|
description: 'This is a description. This is a description.',
|
|
},
|
|
{
|
|
title: 'Waiting',
|
|
description: 'This is a description.',
|
|
},
|
|
{
|
|
title: 'Waiting',
|
|
description: 'This is a description.',
|
|
},
|
|
]}
|
|
/>
|
|
</>
|
|
);
|
|
|
|
export default App;
|
|
```
|