This commit is contained in:
hailin 2025-04-01 11:24:49 +08:00
parent cf8f833edd
commit d1cd950240
1 changed files with 10 additions and 7 deletions

View File

@ -354,14 +354,17 @@ export function DetailPageHeader({ data }: { data: any }) {
</div>
{/* 状态条 */}
<div className="w-full mt-4 bg-gray-200 h-6">
<div
className="bg-blue-500 h-full text-white text-center text-sm flex items-center justify-center transition-all duration-300 px-2 overflow-hidden whitespace-nowrap text-ellipsis"
style={{ width: data?.progress || "60%" }}
>
{loading ? "操作中..." : statusText}
{(data?.progress !== "0%" || statusText) && (
<div className="w-full mt-4 bg-gray-200 h-6">
<div
className="bg-blue-500 h-full text-white text-center text-sm flex items-center justify-center transition-all duration-300 px-2 overflow-hidden whitespace-nowrap text-ellipsis"
style={{ width: data?.progress || "60%" }}
>
{loading ? "操作中..." : statusText}
</div>
</div>
</div>
)}
</div>
</div>
);