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
76 lines
1.4 KiB
Markdown
76 lines
1.4 KiB
Markdown
---
|
|
order: 9
|
|
title:
|
|
zh-CN: 迷你版点状步骤条
|
|
en-US: Dot Style Size Small
|
|
debug: true
|
|
---
|
|
|
|
## 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}
|
|
size="small"
|
|
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"
|
|
size="small"
|
|
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;
|
|
```
|