前端: 添加进度条组件
This commit is contained in:
parent
78f868a33e
commit
e301032c73
18
frontend/src/renderer/components/ProgressBar.jsx
Normal file
18
frontend/src/renderer/components/ProgressBar.jsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Progress } from 'antd';
|
||||||
|
|
||||||
|
function ProgressBar({ percent, status = 'active', showInfo = true }) {
|
||||||
|
return (
|
||||||
|
<Progress
|
||||||
|
percent={percent}
|
||||||
|
status={status}
|
||||||
|
showInfo={showInfo}
|
||||||
|
strokeColor={{
|
||||||
|
'0%': '#108ee9',
|
||||||
|
'100%': '#87d068',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ProgressBar;
|
||||||
Loading…
Reference in New Issue
Block a user