diff --git a/components/QrCodePreview.tsx b/components/QrCodePreview.tsx index 5640f03..82864f1 100644 --- a/components/QrCodePreview.tsx +++ b/components/QrCodePreview.tsx @@ -1,7 +1,8 @@ import React from 'react'; import { Copy, Download } from 'lucide-react'; import { useLazyTranslation } from '@/utils/useLazyTranslation'; -import { cn } from '@/lib/utils'; // 1. 引入标准的 shadcn 工具函数 +import { cn } from '@/lib/utils'; +import { Button } from '@/components/ui/button'; // 继承原生 HTML Div 属性,方便外部无缝扩充类名或监听事件 interface QrCodePreviewProps extends React.HTMLAttributes { @@ -59,27 +60,16 @@ const QrCodePreview = ({ /> - {/* 3. 按钮群全面向 shadcn 官方 Button 视觉规范对齐 */}
- {/* 下载按钮:使用标准的次要按钮风格 (Outline) */} - + - {/* 复制按钮:使用标准的主要行动按钮风格 (Default) */} - +