From ae445ee2347cab99f36790a151961a89669d2983 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Thu, 25 Dec 2025 16:33:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor(StockOverview):=20=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E6=AF=9B=E7=8E=BB=E7=92=83=E6=95=88=E6=9E=9C=E5=88=B0=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E9=85=8D=E7=BD=AE=20-=20=E6=89=B9=E6=AC=A14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - index.js: 使用 GLASS_BLUR.lg 替代 blur(20px) - glassTheme.js: 从全局 glassConfig 导入配置 - FlexScreen/index.tsx: 使用 GLASS_BLUR.lg - QuoteTile.tsx: 使用 GLASS_BLUR.sm - AlertDetailDrawer.js: 使用 GLASS_BLUR.xs/lg 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../FlexScreen/components/QuoteTile.tsx | 3 +- .../components/FlexScreen/index.tsx | 3 +- .../components/AlertDetailDrawer.js | 5 +-- src/views/StockOverview/index.js | 3 +- src/views/StockOverview/theme/glassTheme.js | 36 ++++++++++--------- 5 files changed, 29 insertions(+), 21 deletions(-) diff --git a/src/views/StockOverview/components/FlexScreen/components/QuoteTile.tsx b/src/views/StockOverview/components/FlexScreen/components/QuoteTile.tsx index 8240b9d6..63ca9caf 100644 --- a/src/views/StockOverview/components/FlexScreen/components/QuoteTile.tsx +++ b/src/views/StockOverview/components/FlexScreen/components/QuoteTile.tsx @@ -19,6 +19,7 @@ import { useNavigate } from 'react-router-dom'; import MiniTimelineChart from './MiniTimelineChart'; import OrderBookPanel from './OrderBookPanel'; import type { QuoteTileProps, QuoteData } from '../types'; +import { GLASS_BLUR } from '@/constants/glassConfig'; /** * 格式化价格显示 @@ -141,7 +142,7 @@ const QuoteTile: React.FC = ({ borderRadius="lg" overflow="hidden" transition="all 0.2s" - backdropFilter="blur(10px)" + backdropFilter={GLASS_BLUR.sm} _hover={{ borderColor: hoverBorderColor, boxShadow: '0 4px 20px rgba(139, 92, 246, 0.2)', diff --git a/src/views/StockOverview/components/FlexScreen/index.tsx b/src/views/StockOverview/components/FlexScreen/index.tsx index 8a91337f..9ecca2fe 100644 --- a/src/views/StockOverview/components/FlexScreen/index.tsx +++ b/src/views/StockOverview/components/FlexScreen/index.tsx @@ -50,6 +50,7 @@ import QuoteTile from './components/QuoteTile'; import { logger } from '@utils/logger'; import { getApiBase } from '@utils/apiConfig'; import type { WatchlistItem, ConnectionStatus } from './types'; +import { GLASS_BLUR } from '@/constants/glassConfig'; // 本地存储 key const STORAGE_KEY = 'flexscreen_watchlist'; @@ -278,7 +279,7 @@ const FlexScreen: React.FC = () => { bg={cardBg} borderWidth="1px" borderColor={borderColor} - backdropFilter="blur(20px)" + backdropFilter={GLASS_BLUR.lg} borderRadius="16px" > diff --git a/src/views/StockOverview/components/HotspotOverview/components/AlertDetailDrawer.js b/src/views/StockOverview/components/HotspotOverview/components/AlertDetailDrawer.js index 4a8f55f7..6c1145d0 100644 --- a/src/views/StockOverview/components/HotspotOverview/components/AlertDetailDrawer.js +++ b/src/views/StockOverview/components/HotspotOverview/components/AlertDetailDrawer.js @@ -27,6 +27,7 @@ import { Portal, } from '@chakra-ui/react'; import { keyframes, css } from '@emotion/react'; +import { GLASS_BLUR } from '@/constants/glassConfig'; import { Clock, Zap, @@ -451,10 +452,10 @@ const AlertDetailDrawer = ({ isOpen, onClose, alertData }) => { onClose={onClose} size="md" > - + { ) : (