mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-06 02:15:35 +08:00
37c894f1a2
* #24532 Progress with steps does not reverse indicator when moving reducing progress percent * updating snapshots * Update components/progress/Steps.tsx Co-authored-by: Amumu <yoyo837@hotmail.com> * fix tsd and add transition * add default color for Progress steps * color => background * @success-color => @info-color * @progress-default-color Co-authored-by: Amumu <yoyo837@hotmail.com> Co-authored-by: afc163 <afc163@gmail.com>
30 lines
426 B
Markdown
30 lines
426 B
Markdown
---
|
|
order: 11
|
|
title:
|
|
zh-CN: 步骤进度条
|
|
en-US: Progress bar with steps
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
带步骤的进度条。
|
|
|
|
## en-US
|
|
|
|
A progress bar with steps.
|
|
|
|
```jsx
|
|
import { Progress } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<>
|
|
<Progress percent={50} steps={3} />
|
|
<br />
|
|
<Progress percent={30} steps={5} />
|
|
<br />
|
|
<Progress percent={100} steps={5} size="small" strokeColor="#52c41a" />
|
|
</>,
|
|
mountNode,
|
|
);
|
|
```
|