"use client"; import { cn } from "@/lib/utils"; import * as ProgressPrimitive from "@radix-ui/react-progress"; import * as React from "react"; const Progress = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { indicatorClassName?: string; // 添加一个新的可选属性来自定义Indicator的类名 } >(({ className, value, indicatorClassName, ...props }, ref) => ( )); Progress.displayName = ProgressPrimitive.Root.displayName; export { Progress };