feat(community): 列表模式事件卡片高度自适应
This commit is contained in:
@@ -112,6 +112,7 @@ const VerticalModeLayout = ({
|
|||||||
timelineStyle={getTimelineBoxStyle()}
|
timelineStyle={getTimelineBoxStyle()}
|
||||||
borderColor={borderColor}
|
borderColor={borderColor}
|
||||||
indicatorSize={layoutMode === 'detail' ? 'default' : 'comfortable'}
|
indicatorSize={layoutMode === 'detail' ? 'default' : 'comfortable'}
|
||||||
|
layout="vertical"
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</VStack>
|
</VStack>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import StockChangeIndicators from '../../../../components/StockChangeIndicators'
|
|||||||
* @param {Object} props.timelineStyle - 时间轴样式配置
|
* @param {Object} props.timelineStyle - 时间轴样式配置
|
||||||
* @param {string} props.borderColor - 边框颜色
|
* @param {string} props.borderColor - 边框颜色
|
||||||
* @param {string} props.indicatorSize - 涨幅指标尺寸 ('default' | 'comfortable' | 'large')
|
* @param {string} props.indicatorSize - 涨幅指标尺寸 ('default' | 'comfortable' | 'large')
|
||||||
|
* @param {string} props.layout - 布局模式 ('vertical' | 'four-row'),影响时间轴竖线高度
|
||||||
*/
|
*/
|
||||||
const HorizontalDynamicNewsEventCard = ({
|
const HorizontalDynamicNewsEventCard = ({
|
||||||
event,
|
event,
|
||||||
@@ -47,6 +48,7 @@ const HorizontalDynamicNewsEventCard = ({
|
|||||||
timelineStyle,
|
timelineStyle,
|
||||||
borderColor,
|
borderColor,
|
||||||
indicatorSize = 'comfortable',
|
indicatorSize = 'comfortable',
|
||||||
|
layout = 'vertical',
|
||||||
}) => {
|
}) => {
|
||||||
const importance = getImportanceConfig(event.importance);
|
const importance = getImportanceConfig(event.importance);
|
||||||
|
|
||||||
@@ -98,7 +100,7 @@ const HorizontalDynamicNewsEventCard = ({
|
|||||||
createdAt={event.created_at}
|
createdAt={event.created_at}
|
||||||
timelineStyle={timelineStyle}
|
timelineStyle={timelineStyle}
|
||||||
borderColor={borderColor}
|
borderColor={borderColor}
|
||||||
minHeight="60px"
|
minHeight={layout === 'four-row' ? '60px' : 0}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* 右侧事件卡片容器(带印章) */}
|
{/* 右侧事件卡片容器(带印章) */}
|
||||||
|
|||||||
Reference in New Issue
Block a user