62 lines
2.1 KiB
TypeScript
Executable File
62 lines
2.1 KiB
TypeScript
Executable File
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 NewTrafficDistributionLoading() {
|
|
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>
|
|
<h1 className="text-lg font-medium">新建流量分发</h1>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div className="p-4 max-w-3xl mx-auto">
|
|
{/* 步骤指示器骨架 */}
|
|
<div className="mb-6">
|
|
<div className="flex items-center justify-between">
|
|
{[1, 2, 3].map((step) => (
|
|
<div key={step} className="flex flex-col items-center">
|
|
<Skeleton className="w-8 h-8 rounded-full" />
|
|
<Skeleton className="h-4 w-16 mt-1" />
|
|
</div>
|
|
))}
|
|
</div>
|
|
<Skeleton className="h-1 w-full mt-2" />
|
|
</div>
|
|
|
|
{/* 表单骨架 */}
|
|
<Card>
|
|
<CardHeader>
|
|
<Skeleton className="h-6 w-32" />
|
|
</CardHeader>
|
|
<CardContent className="space-y-4">
|
|
<div className="space-y-2">
|
|
<Skeleton className="h-4 w-24" />
|
|
<Skeleton className="h-10 w-full" />
|
|
</div>
|
|
<div className="space-y-2">
|
|
<Skeleton className="h-4 w-24" />
|
|
<Skeleton className="h-24 w-full" />
|
|
</div>
|
|
<div className="space-y-2">
|
|
<Skeleton className="h-4 w-24" />
|
|
<Skeleton className="h-10 w-full" />
|
|
</div>
|
|
<div className="pt-4 flex justify-end">
|
|
<Skeleton className="h-10 w-24" />
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|