Files
cunkebao_v3/Cunkebao/app/components-demo/loading.tsx
笔记本里的永平 5ff15472f5 feat: 本次提交更新内容如下
场景获客列表搞定
2025-07-07 17:08:27 +08:00

35 lines
1.2 KiB
TypeScript

import { Card, CardContent, CardHeader } from "@/components/ui/card"
export default function ComponentsDemoLoading() {
return (
<div className="container mx-auto py-8 space-y-8">
<div className="space-y-4">
<div className="h-8 bg-gray-200 rounded animate-pulse" />
<div className="h-4 bg-gray-200 rounded animate-pulse w-2/3" />
</div>
<div className="space-y-6">
<div className="flex space-x-1">
{Array.from({ length: 6 }).map((_, i) => (
<div key={i} className="h-10 bg-gray-200 rounded animate-pulse flex-1" />
))}
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{Array.from({ length: 6 }).map((_, i) => (
<Card key={i}>
<CardHeader>
<div className="h-6 bg-gray-200 rounded animate-pulse" />
<div className="h-4 bg-gray-200 rounded animate-pulse w-3/4" />
</CardHeader>
<CardContent>
<div className="h-32 bg-gray-200 rounded animate-pulse" />
</CardContent>
</Card>
))}
</div>
</div>
</div>
)
}