mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 17:59:57 +08:00
c2f208e2d2
* feat: Steps with progress * test: update snapshot * fix: lint * Update package.json Co-authored-by: 偏右 <afc163@gmail.com> * refactor: remove progressIcon && rename percentage to percent * test: snapshot * fix: icon position offset * fix: position offset * fix: icon position offset * docs * fix: small line offset Co-authored-by: 偏右 <afc163@gmail.com>
30 lines
529 B
Markdown
30 lines
529 B
Markdown
---
|
|
order: 13
|
|
title:
|
|
zh-CN: 带有进度的步骤
|
|
en-US: Steps with progress
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
带有进度的步骤。
|
|
|
|
## en-US
|
|
|
|
Steps with progress.
|
|
|
|
```jsx
|
|
import { Steps } from 'antd';
|
|
|
|
const { Step } = Steps;
|
|
|
|
ReactDOM.render(
|
|
<Steps current={1} percent={60}>
|
|
<Step title="Finished" description="This is a description." />
|
|
<Step title="In Progress" subTitle="Left 00:00:08" description="This is a description." />
|
|
<Step title="Waiting" description="This is a description." />
|
|
</Steps>,
|
|
mountNode,
|
|
);
|
|
```
|