2015-06-15 14:43:27 +08:00
|
|
|
# 小型进度条
|
2015-06-15 11:48:30 +08:00
|
|
|
|
2015-06-15 16:49:37 +08:00
|
|
|
- order: 2
|
2015-06-15 11:48:30 +08:00
|
|
|
|
2015-06-15 14:43:27 +08:00
|
|
|
适合放在较狭窄的区域内。
|
2015-06-15 11:48:30 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
2016-01-20 20:20:24 +08:00
|
|
|
import { Progress } from 'antd';
|
2015-10-28 20:55:49 +08:00
|
|
|
const ProgressLine = Progress.Line;
|
2015-06-15 11:48:30 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(
|
2015-07-30 18:42:11 +08:00
|
|
|
<div style={{ width: 170 }}>
|
2015-10-28 20:55:49 +08:00
|
|
|
<ProgressLine percent={30} strokeWidth={5} />
|
|
|
|
<ProgressLine percent={50} strokeWidth={5} status="active" />
|
2016-01-20 20:20:24 +08:00
|
|
|
<ProgressLine percent={70} strokeWidth={5} status="exception" />
|
2015-10-28 20:55:49 +08:00
|
|
|
<ProgressLine percent={100} strokeWidth={5} />
|
2015-06-15 11:48:30 +08:00
|
|
|
</div>
|
2015-12-29 12:08:58 +08:00
|
|
|
, mountNode);
|
2015-06-15 11:48:30 +08:00
|
|
|
````
|