From 97249db546a7a9b41d64f7408a57ccc24c7b7428 Mon Sep 17 00:00:00 2001 From: WrBug Date: Mon, 2 Mar 2026 17:40:44 +0800 Subject: [PATCH] =?UTF-8?q?style(copy-trading):=20=E8=B7=9F=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=93=8D=E4=BD=9C=E5=88=97=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 操作列编辑、统计等改为 Tooltip+图标点击,与策略列表风格统一 - 操作列宽度 200 -> 160 Made-with: Cursor --- frontend/src/pages/CopyTradingList.tsx | 146 ++++++++++++++++--------- 1 file changed, 93 insertions(+), 53 deletions(-) diff --git a/frontend/src/pages/CopyTradingList.tsx b/frontend/src/pages/CopyTradingList.tsx index 58c8c4d..5e204f8 100644 --- a/frontend/src/pages/CopyTradingList.tsx +++ b/frontend/src/pages/CopyTradingList.tsx @@ -297,7 +297,7 @@ const CopyTradingList: React.FC = () => { { title: t('common.actions') || '操作', key: 'action', - width: isMobile ? 100 : 200, + width: isMobile ? 100 : 160, fixed: 'right' as const, render: (_: any, record: CopyTrading) => { const menuItems: MenuProps['items'] = [ @@ -321,61 +321,101 @@ const CopyTradingList: React.FC = () => { } } ] - + return ( - - {!isMobile && ( - <> - - - - )} + + +
{ + setEditModalCopyTradingId(record.id.toString()) + setEditModalOpen(true) + }} + style={{ + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + width: '32px', + height: '32px', + cursor: 'pointer', + borderRadius: '6px', + transition: 'background-color 0.2s' + }} + onMouseEnter={(e) => { e.currentTarget.style.backgroundColor = '#f0f0f0' }} + onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = 'transparent' }} + > + +
+
+ + +
{ + setStatisticsModalCopyTradingId(record.id.toString()) + setStatisticsModalOpen(true) + }} + style={{ + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + width: '32px', + height: '32px', + cursor: 'pointer', + borderRadius: '6px', + transition: 'background-color 0.2s' + }} + onMouseEnter={(e) => { e.currentTarget.style.backgroundColor = '#f0f0f0' }} + onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = 'transparent' }} + > + +
+
+ - - - {!isMobile && ( - handleDelete(record.id)} - okText={t('common.confirm') || '确定'} - cancelText={t('common.cancel') || '取消'} - > - - - )} + + + + + + handleDelete(record.id)} + okText={t('common.confirm') || '确定'} + cancelText={t('common.cancel') || '取消'} + > + +
{ e.currentTarget.style.backgroundColor = '#fff1f0' }} + onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = 'transparent' }} + > + +
+
+
) }