From e6276c573f37b5485398595374ee8a1a4579fcc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= <2712495353@qq.com> Date: Thu, 9 Jul 2026 23:38:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=AF=BC=E5=87=BA=E5=B9=B6=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E7=BB=84=E4=BB=B6=E5=B9=B6=E6=B8=85?= =?UTF-8?q?=E7=90=86=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/badge.tsx | 4 ++-- src/components/ui/button.tsx | 2 +- src/components/ui/select.tsx | 25 +------------------------ 3 files changed, 4 insertions(+), 27 deletions(-) diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx index 060c32a..613914d 100644 --- a/src/components/ui/badge.tsx +++ b/src/components/ui/badge.tsx @@ -22,11 +22,11 @@ const badgeVariants = cva( }, ); -export interface BadgeProps +interface BadgeProps extends React.HTMLAttributes, VariantProps {} function Badge({ className, variant, ...props }: BadgeProps) { return
; } -export { Badge, badgeVariants }; +export { Badge }; diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index 6cec5ff..5ea5391 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -46,4 +46,4 @@ const Button = React.forwardRef( ); Button.displayName = 'Button'; -export { Button, buttonVariants }; +export { Button }; diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx index b0fbfef..785c956 100644 --- a/src/components/ui/select.tsx +++ b/src/components/ui/select.tsx @@ -124,27 +124,4 @@ const SelectItem = React.forwardRef< )); SelectItem.displayName = SelectPrimitive.Item.displayName; -const SelectSeparator = React.forwardRef< - React.ComponentRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)); -SelectSeparator.displayName = SelectPrimitive.Separator.displayName; - -export { - Select, - SelectGroup, - SelectValue, - SelectTrigger, - SelectContent, - SelectLabel, - SelectItem, - SelectSeparator, - SelectScrollUpButton, - SelectScrollDownButton, -}; +export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem };