feat: 将 StockQuoteCard 提升到 Tab 容器上方 + 修复 TS 警告

功能变更:
- 将 StockQuoteCard 从 CompanyOverview 移至 Company/index.tsx
- 股票行情卡片现在在切换 Tab 时始终可见

TypeScript 警告修复:
- SubTabContainer: WebkitBackdropFilter 改用 sx 属性
- DetailTable: 重新定义 TableRowData 类型,支持 boolean 索引
- SubscriptionContentNew: 添加类型安全的 AGREEMENT_URLS 索引访问

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-18 17:25:21 +08:00
parent a2b971f973
commit 79c36a1c62
5 changed files with 42 additions and 16 deletions

View File

@@ -114,10 +114,13 @@ const tableStyles = `
}
`;
interface TableRowData extends DetailTableRow {
// 表格行数据类型 - 扩展索引签名以支持 boolean
type TableRowData = {
key: string;
isImportant?: boolean;
}
指标: string;
[year: string]: string | number | boolean | null | undefined;
};
const DetailTable: React.FC<DetailTableProps> = ({ data }) => {
const { years, rows } = data;