This commit is contained in:
parent
cf8f833edd
commit
d1cd950240
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue