From 1f9288f7808e677042dcecb781663e4328f1e8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Wed, 10 Jun 2026 08:15:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BD=BF=E7=94=A8=20Label=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=9B=BF=E6=8D=A2=E5=8E=9F=E7=94=9F=20label?= =?UTF-8?q?=20=E5=85=83=E7=B4=A0=EF=BC=8C=E5=B9=B6=E5=9C=A8=20DecodeResult?= =?UTF-8?q?Paper=20=E4=B8=AD=E5=BC=95=E5=85=A5=20Input=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DecodeResultPaper.tsx | 8 ++---- src/components/ImageUploader.tsx | 14 +++++++---- .../components/FieldEditor.tsx | 25 ++++++++++--------- .../components/GenerateOptions.tsx | 9 ++++--- .../components/GeneratorConfig.tsx | 5 ++-- 5 files changed, 32 insertions(+), 29 deletions(-) diff --git a/src/components/DecodeResultPaper.tsx b/src/components/DecodeResultPaper.tsx index 9240e76..c3987e0 100644 --- a/src/components/DecodeResultPaper.tsx +++ b/src/components/DecodeResultPaper.tsx @@ -9,6 +9,7 @@ */ import { Download } from 'lucide-react'; import { Button } from '@/components/ui/button'; +import { Input } from '@/components/ui/input'; import { formatBytes } from '@/utils/format'; import { useI18n } from '@/utils/chromeI18n'; @@ -63,12 +64,7 @@ export default function DecodeResultPaper({ - onFileNameChange(e.target.value)} - className="w-full px-3 py-2 text-sm border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary" - /> + onFileNameChange(e.target.value)} /> {/* 下载按钮 */} diff --git a/src/components/ImageUploader.tsx b/src/components/ImageUploader.tsx index 6f3e1cc..fb801b1 100644 --- a/src/components/ImageUploader.tsx +++ b/src/components/ImageUploader.tsx @@ -1,6 +1,8 @@ import { useCallback, useEffect, useRef } from 'react'; import { Image, X } from 'lucide-react'; import { toast } from 'sonner'; +import { Button } from '@/components/ui/button'; +import { Label } from '@/components/ui/label'; import { useI18n } from '@/utils/chromeI18n'; interface ImageUploaderProps { @@ -125,7 +127,7 @@ const ImageUploader = ({ className="hidden" id="qr-code-upload" /> -