diff --git a/web/src/app/admin/system-params/page.tsx b/web/src/app/admin/system-params/page.tsx index dcbe287..584bf42 100644 --- a/web/src/app/admin/system-params/page.tsx +++ b/web/src/app/admin/system-params/page.tsx @@ -5,6 +5,7 @@ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { useCallback, useEffect, useMemo, useRef, useState, type CSSProperties } from "react"; import { Button, + Card, Empty, Form, Input, @@ -15,8 +16,10 @@ import { Space, Table, Tag, + type CardProps, type TableColumnsType, } from "antd"; +import type { ComponentType } from "react"; import { useAuth } from "@/components/auth-provider"; import { useToastFeedback } from "@/hooks/use-toast-feedback"; @@ -53,8 +56,10 @@ const PARAM_STATUS_OPTIONS = [ { label: "已禁用", value: "disabled" }, ] as const satisfies ReadonlyArray<{ label: string; value: FormState["status"] }>; +const AntCard = Card as unknown as ComponentType; + const PARAM_TABLE_MIN_SCROLL_Y = 180; -const PARAM_TABLE_VIEWPORT_GAP = 8; +const PARAM_TABLE_VIEWPORT_GAP = 40; const PARAM_TABLE_FALLBACK_RESERVE = 220; export default function AdminSystemParamsPage() { @@ -427,16 +432,19 @@ export default function AdminSystemParamsPage() { return (
-
-
-

参数列表

- {canManage ? ( - - ) : null} -
- + + {listQuery.isFetching && } + {canManage ? ( + + ) : null} + + )} + >
-
+ {canManage && (