前端: 添加进度条组件

This commit is contained in:
Frontend Developer 2026-03-10 09:16:52 +00:00
parent 78f868a33e
commit e301032c73

View 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;