From 2fc1cdf57eed87f7b5c25bd3a7ea62ac7b3df8bd Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Fri, 26 Dec 2025 11:33:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Center):=20=E8=BF=81=E7=A7=BB=E6=AF=9B?= =?UTF-8?q?=E7=8E=BB=E7=92=83=E6=95=88=E6=9E=9C=E5=88=B0=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - FUIEventCard.tsx: 使用 GLASS_BLUR.sm 替代 blur(8px) - EventFormModal.tsx: 使用 GLASS_BLUR.xs 替代 blur(4px) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/views/Center/components/EventFormModal.tsx | 3 ++- src/views/Center/components/FUIEventCard.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/Center/components/EventFormModal.tsx b/src/views/Center/components/EventFormModal.tsx index f4866792..a940682f 100644 --- a/src/views/Center/components/EventFormModal.tsx +++ b/src/views/Center/components/EventFormModal.tsx @@ -49,6 +49,7 @@ import { logger } from '@/utils/logger'; import { getApiBase } from '@/utils/apiConfig'; import { loadWatchlist, loadAllStocks } from '@/store/slices/stockSlice'; import { stockService } from '@/services/stockService'; +import { GLASS_BLUR } from '@/constants/glassConfig'; dayjs.locale('zh-cn'); @@ -559,7 +560,7 @@ export const EventFormModal: React.FC = ({ const modalStyles = { mask: { background: 'rgba(0, 0, 0, 0.7)', - backdropFilter: 'blur(4px)', + backdropFilter: GLASS_BLUR.xs, }, content: { background: 'linear-gradient(135deg, #1A1A2E 0%, #0F0F1A 100%)', diff --git a/src/views/Center/components/FUIEventCard.tsx b/src/views/Center/components/FUIEventCard.tsx index f210eedc..9d6ee200 100644 --- a/src/views/Center/components/FUIEventCard.tsx +++ b/src/views/Center/components/FUIEventCard.tsx @@ -35,6 +35,7 @@ import dayjs from 'dayjs'; import 'dayjs/locale/zh-cn'; import type { InvestmentEvent } from '@/types'; +import { GLASS_BLUR } from '@/constants/glassConfig'; dayjs.locale('zh-cn'); @@ -126,7 +127,7 @@ export const FUIEventCard = memo(({ p={4} border="1px solid" borderColor={FUI_THEME.border} - backdropFilter="blur(8px)" + backdropFilter={GLASS_BLUR.sm} transition="all 0.3s ease" _hover={{ borderColor: FUI_THEME.borderHover,