From 885a8fc7822695e013893c7e822d246e69e7d634 Mon Sep 17 00:00:00 2001 From: hzm <934585316@qq.com> Date: Sun, 15 Mar 2026 19:36:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A1=AE=E8=AE=A4=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=9F=BA=E9=87=91=E5=BC=B9=E6=A1=86=E6=96=B0=E5=A2=9E=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=90=8E=E5=B1=95=E5=BC=80=E8=AF=A6=E6=83=85=E5=BC=80?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/ScanImportConfirmModal.jsx | 11 ++++++++++- app/page.jsx | 20 +++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/app/components/ScanImportConfirmModal.jsx b/app/components/ScanImportConfirmModal.jsx index 640ef8c..c12cbb7 100644 --- a/app/components/ScanImportConfirmModal.jsx +++ b/app/components/ScanImportConfirmModal.jsx @@ -10,6 +10,7 @@ import { SelectTrigger, SelectValue, } from '@/components/ui/select'; +import { Switch } from '@/components/ui/switch'; export default function ScanImportConfirmModal({ scannedFunds, @@ -22,9 +23,10 @@ export default function ScanImportConfirmModal({ isOcrScan = false }) { const [selectedGroupId, setSelectedGroupId] = useState('all'); + const [expandAfterAdd, setExpandAfterAdd] = useState(true); const handleConfirm = () => { - onConfirm(selectedGroupId); + onConfirm(selectedGroupId, expandAfterAdd); }; const formatAmount = (val) => { @@ -126,6 +128,13 @@ export default function ScanImportConfirmModal({ ); })} +
+ 添加后展开详情 + setExpandAfterAdd(!!checked)} + /> +
添加到分组: