From f39f152efac75331d6722bad1d1bf0d2518b89df Mon Sep 17 00:00:00 2001 From: hzm <934585316@qq.com> Date: Mon, 9 Mar 2026 20:16:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=83=A8=E5=88=86=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E5=BC=B9=E6=A1=86=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/ConfirmModal.jsx | 19 ++++++-- app/components/PcFundTable.jsx | 4 +- app/components/PcTableSettingModal.jsx | 2 + app/components/SettingsModal.jsx | 61 +++++++++++++++++++------- components/ui/progress.jsx | 43 ++++++++++++++++++ 5 files changed, 107 insertions(+), 22 deletions(-) create mode 100644 components/ui/progress.jsx diff --git a/app/components/ConfirmModal.jsx b/app/components/ConfirmModal.jsx index e2c9fbf..2032514 100644 --- a/app/components/ConfirmModal.jsx +++ b/app/components/ConfirmModal.jsx @@ -15,20 +15,31 @@ export default function ConfirmModal({ onConfirm, onCancel, confirmText = '确定删除', + icon, + confirmVariant = 'danger', // 'danger' | 'primary' | 'secondary' }) { const handleOpenChange = (open) => { if (!open) onCancel(); }; + const confirmButtonToneClass = + confirmVariant === 'primary' + ? 'button' + : confirmVariant === 'secondary' + ? 'button secondary' + : 'button danger'; + return ( - + {icon || ( + + )} {title} @@ -44,7 +55,7 @@ export default function ConfirmModal({