This commit is contained in:
hailin 2025-04-02 20:24:17 +08:00
parent 01e347e43b
commit 9470ba7985
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ export function Header() {
export function DetailPageHeader({ data }: { data: any }) {
const [loading, setLoading] = useState(false);
const [statusText, setStatusText] = useState(data?.statusText || "加载中...");
const [progress, setProgress] = useState("0%");
const [progress, setProgress] = useState(data?.progress || "0%");
const [showDelete, setShowDelete] = useState(true); // 默认可以删除
@ -397,7 +397,7 @@ export function DetailPageHeader({ data }: { data: any }) {
<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%" }}
style={{ width: progress || "0%" }}
>
{loading ? "操作中..." : statusText}
</div>