From b5d054d89f2dd2a16efa870edc6bc01fa60f8f65 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Thu, 4 Dec 2025 16:26:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A6=82=E5=BF=B5=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=97=B6=E9=97=B4=E8=BD=B4=E5=BC=B9=E7=AA=97?= =?UTF-8?q?UI=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Concept/ConceptTimelineModal.js | 183 ++++++++++++---------- 1 file changed, 102 insertions(+), 81 deletions(-) diff --git a/src/views/Concept/ConceptTimelineModal.js b/src/views/Concept/ConceptTimelineModal.js index ac271ee7..f002838a 100644 --- a/src/views/Concept/ConceptTimelineModal.js +++ b/src/views/Concept/ConceptTimelineModal.js @@ -31,6 +31,7 @@ import { useDisclosure, SimpleGrid, Tooltip, + useBreakpointValue, } from '@chakra-ui/react'; import { ChevronDownIcon, @@ -111,6 +112,9 @@ const ConceptTimelineModal = ({ const [selectedNews, setSelectedNews] = useState(null); const [isNewsModalOpen, setIsNewsModalOpen] = useState(false); + // 响应式配置 + const isMobile = useBreakpointValue({ base: true, md: false }, { fallback: 'md' }); + // 辅助函数:格式化日期显示(包含年份) const formatDateDisplay = (dateStr) => { const date = new Date(dateStr); @@ -602,37 +606,41 @@ const ConceptTimelineModal = ({ onClose={onClose} size="full" scrollBehavior="inside" + isCentered > - + - + {conceptName} - 历史时间轴 最近100天 @@ -640,20 +648,29 @@ const ConceptTimelineModal = ({ 🔥 Max版功能 - + ) : timelineData.length > 0 ? ( - - {/* 图例说明 */} - + + {/* 图例说明 - H5端保持一行 */} + - - 📰 新闻 + + 📰 新闻 - - 📊 研报 + + 📊 研报 - - 上涨 + + 上涨 - - 下跌 + + 下跌 - 🔥 - 涨3%+ + 🔥 + 涨3%+ {/* FullCalendar 日历组件 */} @@ -882,32 +924,11 @@ const ConceptTimelineModal = ({ )} {/* 风险提示 */} - + - - - )}