更新Company页面的UI为FUI风格
This commit is contained in:
@@ -135,6 +135,18 @@ const MainlineCard = React.memo(({
|
||||
>
|
||||
{mainline.lv2_name || "其他"}
|
||||
</Text>
|
||||
{/* 涨跌幅显示 - 在概念名称旁边 */}
|
||||
{mainline.avg_change_pct != null && (
|
||||
<Text
|
||||
fontSize="sm"
|
||||
fontWeight="bold"
|
||||
color={mainline.avg_change_pct >= 0 ? "#fc8181" : "#68d391"}
|
||||
flexShrink={0}
|
||||
>
|
||||
{mainline.avg_change_pct >= 0 ? "+" : ""}
|
||||
{mainline.avg_change_pct.toFixed(2)}%
|
||||
</Text>
|
||||
)}
|
||||
<Badge
|
||||
colorScheme={colorScheme}
|
||||
fontSize="xs"
|
||||
@@ -145,24 +157,11 @@ const MainlineCard = React.memo(({
|
||||
{mainline.event_count}
|
||||
</Badge>
|
||||
</HStack>
|
||||
<HStack spacing={2}>
|
||||
{mainline.lv1_name && (
|
||||
<Text fontSize="xs" color={COLORS.secondaryTextColor} noOfLines={1}>
|
||||
{mainline.lv1_name}
|
||||
</Text>
|
||||
)}
|
||||
{/* 涨跌幅显示 */}
|
||||
{mainline.avg_change_pct != null && (
|
||||
<Text
|
||||
fontSize="xs"
|
||||
fontWeight="bold"
|
||||
color={mainline.avg_change_pct >= 0 ? "#fc8181" : "#68d391"}
|
||||
>
|
||||
{mainline.avg_change_pct >= 0 ? "+" : ""}
|
||||
{mainline.avg_change_pct.toFixed(2)}%
|
||||
</Text>
|
||||
)}
|
||||
</HStack>
|
||||
{mainline.lv1_name && (
|
||||
<Text fontSize="xs" color={COLORS.secondaryTextColor} noOfLines={1}>
|
||||
{mainline.lv1_name}
|
||||
</Text>
|
||||
)}
|
||||
</VStack>
|
||||
<Icon
|
||||
as={isExpanded ? ChevronUpIcon : ChevronDownIcon}
|
||||
|
||||
Reference in New Issue
Block a user