perf(MarketDataView): 优化加载状态,使用骨架屏避免布局跳动

- useMarketData: 新增 hasLoaded 状态,优化首次加载 loading 逻辑
- 导出 SummaryCardSkeleton 组件用于概览卡片占位
- MarketDataView: 使用骨架屏替代空白占位
- DeepAnalysisTab: 使用 skeleton 变体替代 spinner

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-22 12:15:39 +08:00
parent 88b836e75a
commit 9e271747da
5 changed files with 26 additions and 20 deletions

View File

@@ -77,7 +77,7 @@ const DeepAnalysisTab: React.FC<DeepAnalysisTabProps> = ({
themePreset="blackGold"
size="sm"
/>
<LoadingState message="加载数据中..." height="200px" />
<LoadingState variant="skeleton" height="300px" skeletonRows={6} />
</CardBody>
</Card>
);