This commit is contained in:
parent
01e347e43b
commit
9470ba7985
|
|
@ -123,7 +123,7 @@ export function Header() {
|
||||||
export function DetailPageHeader({ data }: { data: any }) {
|
export function DetailPageHeader({ data }: { data: any }) {
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [statusText, setStatusText] = useState(data?.statusText || "加载中...");
|
const [statusText, setStatusText] = useState(data?.statusText || "加载中...");
|
||||||
const [progress, setProgress] = useState("0%");
|
const [progress, setProgress] = useState(data?.progress || "0%");
|
||||||
const [showDelete, setShowDelete] = useState(true); // 默认可以删除
|
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="w-full mt-4 bg-gray-200 h-6">
|
||||||
<div
|
<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"
|
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}
|
{loading ? "操作中..." : statusText}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue