From 44b8c64907b5bd224f331e119be171dca20a26ec Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Fri, 7 Nov 2025 19:25:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(community):=20=E5=88=97=E8=A1=A8=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=BA=8B=E4=BB=B6=E5=8D=A1=E7=89=87=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/DynamicNewsCard/VerticalModeLayout.js | 1 + .../components/EventCard/HorizontalDynamicNewsEventCard.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/Community/components/DynamicNewsCard/VerticalModeLayout.js b/src/views/Community/components/DynamicNewsCard/VerticalModeLayout.js index 1db9c7cf..c2437d02 100644 --- a/src/views/Community/components/DynamicNewsCard/VerticalModeLayout.js +++ b/src/views/Community/components/DynamicNewsCard/VerticalModeLayout.js @@ -112,6 +112,7 @@ const VerticalModeLayout = ({ timelineStyle={getTimelineBoxStyle()} borderColor={borderColor} indicatorSize={layoutMode === 'detail' ? 'default' : 'comfortable'} + layout="vertical" /> ))} diff --git a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js index 8a0ca736..2e86349c 100644 --- a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js +++ b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js @@ -34,6 +34,7 @@ import StockChangeIndicators from '../../../../components/StockChangeIndicators' * @param {Object} props.timelineStyle - 时间轴样式配置 * @param {string} props.borderColor - 边框颜色 * @param {string} props.indicatorSize - 涨幅指标尺寸 ('default' | 'comfortable' | 'large') + * @param {string} props.layout - 布局模式 ('vertical' | 'four-row'),影响时间轴竖线高度 */ const HorizontalDynamicNewsEventCard = ({ event, @@ -47,6 +48,7 @@ const HorizontalDynamicNewsEventCard = ({ timelineStyle, borderColor, indicatorSize = 'comfortable', + layout = 'vertical', }) => { const importance = getImportanceConfig(event.importance); @@ -98,7 +100,7 @@ const HorizontalDynamicNewsEventCard = ({ createdAt={event.created_at} timelineStyle={timelineStyle} borderColor={borderColor} - minHeight="60px" + minHeight={layout === 'four-row' ? '60px' : 0} /> {/* 右侧事件卡片容器(带印章) */}