From a86da75eff0732ee49f26dcce5b46dadd509dee6 Mon Sep 17 00:00:00 2001 From: weikejia <21105355@qq.com> Date: Mon, 6 Jul 2026 03:01:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=9C=8B=E6=9D=BF=E6=B6=A8=E5=B9=85?= =?UTF-8?q?=E6=A6=9C/=E8=B7=8C=E5=B9=85=E6=A6=9C/=E6=88=90=E4=BA=A4?= =?UTF-8?q?=E9=A2=9D=E6=A6=9C/=E6=B4=BB=E8=B7=83=E6=A6=9C/=E9=A2=86?= =?UTF-8?q?=E6=B6=A8=E9=A2=86=E8=B7=8C=E6=A6=82=E5=BF=B5=E4=B8=AA=E8=82=A1?= =?UTF-8?q?=E5=8F=AF=E7=82=B9=E5=87=BB=E6=9F=A5=E7=9C=8B=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/Dashboard.tsx | 54 ++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 9dd9235..feff432 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -385,7 +385,10 @@ function MiniMetric({ label, value, cls = 'text-foreground' }: { label: string; ) } -function StockList({ title, rows, mode }: { title: string; rows: MarketSnapshotRow[]; mode: 'gain' | 'loss' | 'amount' | 'active' }) { +function StockList({ title, rows, mode, onStockClick }: { + title: string; rows: MarketSnapshotRow[]; mode: 'gain' | 'loss' | 'amount' | 'active'; + onStockClick?: (symbol: string, name?: string) => void; +}) { return (