From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/base/button/index.tsx | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/app/components/base/button/index.tsx b/app/components/base/button/index.tsx
index b467c49..3bd4b21 100644
--- a/app/components/base/button/index.tsx
+++ b/app/components/base/button/index.tsx
@@ -34,11 +34,10 @@
destructive?: boolean
loading?: boolean
styleCss?: CSSProperties
- spinnerClassName?: string
} & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
- ({ className, variant, size, destructive, loading, styleCss, children, spinnerClassName, ...props }, ref) => {
+ ({ className, variant, size, destructive, loading, styleCss, children, ...props }, ref) => {
return (
<button
type='button'
@@ -51,7 +50,7 @@
{...props}
>
{children}
- {loading && <Spinner loading={loading} className={classNames('!text-white !h-3 !w-3 !border-2 !ml-1', spinnerClassName)} />}
+ {loading && <Spinner loading={loading} className='!text-white !h-3 !w-3 !border-2 !ml-1' />}
</button>
)
},
--
Gitblit v1.8.0