From 7054124eaf0966fe392f7c2b5e9d7cadcafc32cd Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Wed, 17 Dec 2025 19:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Company=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84UI=E4=B8=BAFUI=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Company/components/CompanyHeader/index.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/views/Company/components/CompanyHeader/index.tsx b/src/views/Company/components/CompanyHeader/index.tsx index 4cf25f93..c82c947b 100644 --- a/src/views/Company/components/CompanyHeader/index.tsx +++ b/src/views/Company/components/CompanyHeader/index.tsx @@ -18,7 +18,6 @@ import { Button, Icon, Skeleton, - keyframes, } from '@chakra-ui/react'; import { AutoComplete, Spin } from 'antd'; import { Search, Star, TrendingUp, TrendingDown } from 'lucide-react'; @@ -27,12 +26,6 @@ import { THEME, getSearchBoxStyles } from '../../config'; import { FUI_COLORS, FUI_GLOW, FUI_ANIMATION, FUI_GLASS } from '../../theme/fui'; import type { CompanyHeaderProps, StockSearchResult } from '../../types'; -// 发光脉冲动画 -const glowPulse = keyframes` - 0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); } - 50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); } -`; - /** * 股票信息展示组件 - FUI 风格 */ @@ -313,7 +306,7 @@ const SearchActions = memo<{ fontWeight="bold" borderRadius="10px" transition={`all ${FUI_ANIMATION.duration.fast} ${FUI_ANIMATION.easing.default}`} - sx={isInWatchlist ? { animation: `${glowPulse} 3s ease-in-out infinite` } : undefined} + sx={isInWatchlist ? { animation: 'glowPulse 3s ease-in-out infinite' } : undefined} > {isInWatchlist ? '已自选' : '自选'}