diff --git a/frontend/src/components/manager/manager-list-page.tsx b/frontend/src/components/manager/manager-list-page.tsx new file mode 100644 index 00000000..4a4ba0c2 --- /dev/null +++ b/frontend/src/components/manager/manager-list-page.tsx @@ -0,0 +1,80 @@ +import type { ReactNode } from "react" + +import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" +import { Empty, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "@/components/ui/empty" +import { Spinner } from "@/components/ui/spinner" + +export function ManagerListCard({ + title, + description, + icon, + count, + children, + pagination, +}: { + title: string + description: string + icon: ReactNode + count?: number + children: ReactNode + pagination: ReactNode +}) { + return ( + + + + {icon} + {title} + + + {description} + {typeof count === "number" && ` · 当前 ${count} 条`} + + + +
{children}
+ {pagination} +
+
+ ) +} + +export function ManagerListLoading({ title }: { title: string }) { + return ( + + + + + + + + {title} + + + + + ) +} + +export function ManagerListEmpty({ + title, + description, + colSpan, +}: { + title: string + description: string + colSpan: number +}) { + return ( + + + + + {title} + {description} + + + + + ) +} diff --git a/frontend/src/components/manager/team-data-table-pagination.tsx b/frontend/src/components/manager/team-data-table-pagination.tsx index 83fda192..ba5b0b1c 100644 --- a/frontend/src/components/manager/team-data-table-pagination.tsx +++ b/frontend/src/components/manager/team-data-table-pagination.tsx @@ -31,9 +31,9 @@ export function TeamDataTablePagination({ onPageSizeChange: (size: number) => void }) { return ( -
+
- 每页显示: + 每页显示: