import type React from "react" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { ArrowDown, ArrowUp } from "lucide-react" interface StatCardProps { title: string value: string change: string icon: React.ReactNode trend: "up" | "down" | "neutral" } export function StatCard({ title, value, change, icon, trend }: StatCardProps) { return ( {/* 修改这里:将overlay的z-index设置为-1,确保它不会覆盖文字内容 */}
{title}
{icon}
{value}
{trend === "up" && } {trend === "down" && }

{change}

) }