This commit is contained in:
parent
cf8f833edd
commit
d1cd950240
|
|
@ -354,14 +354,17 @@ export function DetailPageHeader({ data }: { data: any }) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 状态条 */}
|
{/* 状态条 */}
|
||||||
<div className="w-full mt-4 bg-gray-200 h-6">
|
{(data?.progress !== "0%" || statusText) && (
|
||||||
<div
|
<div className="w-full mt-4 bg-gray-200 h-6">
|
||||||
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"
|
<div
|
||||||
style={{ width: data?.progress || "60%" }}
|
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}
|
>
|
||||||
|
{loading ? "操作中..." : statusText}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue