feat(StockQuoteCard): 新增每股收益(EPS)显示

- Mock 数据添加 eps、pb、主力动态等指标
  - StockQuoteCard 显示 EPS 数据
  - useStockQuote 支持 eps 字段转换
  - StockInfoHeader 移除重复的 EPS 显示
This commit is contained in:
zdl
2025-12-16 20:08:35 +08:00
parent bc6d370f55
commit ab7164681a
5 changed files with 23 additions and 13 deletions

View File

@@ -276,6 +276,12 @@ const StockQuoteCard: React.FC<StockQuoteCardProps> = ({
{data.pe.toFixed(2)}
</Text>
</HStack>
<HStack justify="space-between">
<Text color={labelColor}>(EPS)</Text>
<Text color={valueColor} fontWeight="bold" fontSize="16px">
{data.eps?.toFixed(3) || '-'}
</Text>
</HStack>
<HStack justify="space-between">
<Text color={labelColor}>(PB)</Text>
<Text color={valueColor} fontWeight="bold" fontSize="16px">