100 lines
3.3 KiB
TypeScript
100 lines
3.3 KiB
TypeScript
import { Card, CardContent, CardHeader } from "@/components/ui/card"
|
|
import { Skeleton } from "@/components/ui/skeleton"
|
|
import { ChevronLeft } from "lucide-react"
|
|
import { Button } from "@/components/ui/button"
|
|
|
|
export default function TrafficDistributionDetailLoading() {
|
|
return (
|
|
<div className="flex-1 bg-white min-h-screen">
|
|
<header className="sticky top-0 z-10 bg-white border-b">
|
|
<div className="flex items-center justify-between p-4">
|
|
<div className="flex items-center space-x-3">
|
|
<Button variant="ghost" size="icon" disabled>
|
|
<ChevronLeft className="h-5 w-5" />
|
|
</Button>
|
|
<Skeleton className="h-6 w-40" />
|
|
</div>
|
|
<div className="flex items-center space-x-2">
|
|
<Skeleton className="h-8 w-32" />
|
|
<Skeleton className="h-9 w-20" />
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div className="p-4">
|
|
{/* 标签页骨架 */}
|
|
<Skeleton className="h-10 w-full mb-6" />
|
|
|
|
{/* 内容骨架 */}
|
|
<div className="space-y-6">
|
|
{/* 数据卡片骨架 */}
|
|
<div className="grid grid-cols-2 gap-4">
|
|
<Card>
|
|
<CardContent className="p-4">
|
|
<div className="flex items-center justify-between">
|
|
<div>
|
|
<Skeleton className="h-4 w-16 mb-2" />
|
|
<Skeleton className="h-8 w-24" />
|
|
</div>
|
|
<Skeleton className="h-8 w-8 rounded-full" />
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
<Card>
|
|
<CardContent className="p-4">
|
|
<div className="flex items-center justify-between">
|
|
<div>
|
|
<Skeleton className="h-4 w-16 mb-2" />
|
|
<Skeleton className="h-8 w-24" />
|
|
</div>
|
|
<Skeleton className="h-8 w-8 rounded-full" />
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
|
|
{/* 图表骨架 */}
|
|
<Card>
|
|
<CardHeader className="pb-2">
|
|
<div className="flex items-center justify-between">
|
|
<Skeleton className="h-6 w-24" />
|
|
<Skeleton className="h-9 w-32" />
|
|
</div>
|
|
</CardHeader>
|
|
<CardContent className="p-4">
|
|
<Skeleton className="h-64 w-full" />
|
|
</CardContent>
|
|
</Card>
|
|
|
|
{/* 基本信息骨架 */}
|
|
<Card>
|
|
<CardHeader>
|
|
<Skeleton className="h-6 w-24" />
|
|
</CardHeader>
|
|
<CardContent className="space-y-4">
|
|
<div className="grid grid-cols-2 gap-4">
|
|
{[1, 2, 3, 4].map((i) => (
|
|
<div key={i}>
|
|
<Skeleton className="h-4 w-16 mb-2" />
|
|
<Skeleton className="h-6 w-32" />
|
|
</div>
|
|
))}
|
|
</div>
|
|
|
|
<div>
|
|
<Skeleton className="h-4 w-16 mb-2" />
|
|
<div className="flex flex-wrap gap-2">
|
|
{[1, 2, 3].map((i) => (
|
|
<Skeleton key={i} className="h-6 w-16 rounded-full" />
|
|
))}
|
|
</div>
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|