事件中心UI优化
This commit is contained in:
@@ -193,8 +193,11 @@ const DynamicNewsEventCard = ({
|
|||||||
const periodLabel = getPeriodLabel(tradingPeriod);
|
const periodLabel = getPeriodLabel(tradingPeriod);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<VStack align="stretch" spacing={2} w="100%" pt={3}>
|
<VStack align="stretch" spacing={2} w="100%" pt={8} position="relative">
|
||||||
|
{/* 右上角:重要性印章(放在卡片外层) */}
|
||||||
|
<Box position="absolute" top={-4} right={4} zIndex={10}>
|
||||||
|
<ImportanceStamp importance={event.importance} />
|
||||||
|
</Box>
|
||||||
|
|
||||||
{/* 事件卡片 */}
|
{/* 事件卡片 */}
|
||||||
<Card
|
<Card
|
||||||
@@ -222,10 +225,6 @@ const DynamicNewsEventCard = ({
|
|||||||
onClick={() => onEventClick?.(event)}
|
onClick={() => onEventClick?.(event)}
|
||||||
>
|
>
|
||||||
<CardBody p={3}>
|
<CardBody p={3}>
|
||||||
{/* 右上角:重要性印章 */}
|
|
||||||
<Box position="absolute" top={-8} right={8} zIndex={2}>
|
|
||||||
<ImportanceStamp importance={event.importance} />
|
|
||||||
</Box>
|
|
||||||
|
|
||||||
{/* 时间标签 - 在卡片上方,宽度自适应,左对齐 */}
|
{/* 时间标签 - 在卡片上方,宽度自适应,左对齐 */}
|
||||||
<Box
|
<Box
|
||||||
|
|||||||
@@ -580,7 +580,8 @@ const UnifiedSearchBox = ({
|
|||||||
|
|
||||||
// 重要性标签(多选合并显示为单个标签)
|
// 重要性标签(多选合并显示为单个标签)
|
||||||
if (importance && importance.length > 0) {
|
if (importance && importance.length > 0) {
|
||||||
const importanceLabel = importance.map(imp => `${imp}级`).join(', ');
|
const importanceMap = { 'S': '极高', 'A': '高', 'B': '中', 'C': '低' };
|
||||||
|
const importanceLabel = importance.map(imp => importanceMap[imp] || imp).join(', ');
|
||||||
tags.push({ key: 'importance', label: `重要性: ${importanceLabel}` });
|
tags.push({ key: 'importance', label: `重要性: ${importanceLabel}` });
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -681,10 +682,10 @@ const UnifiedSearchBox = ({
|
|||||||
placeholder="全部"
|
placeholder="全部"
|
||||||
maxTagCount={3}
|
maxTagCount={3}
|
||||||
>
|
>
|
||||||
<Option value="S">S级</Option>
|
<Option value="S">极高</Option>
|
||||||
<Option value="A">A级</Option>
|
<Option value="A">高</Option>
|
||||||
<Option value="B">B级</Option>
|
<Option value="B">中</Option>
|
||||||
<Option value="C">C级</Option>
|
<Option value="C">低</Option>
|
||||||
</AntSelect>
|
</AntSelect>
|
||||||
</Space>
|
</Space>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user