1
0

style: 修复前端 UI 细节问题

- 供应商/模型/统计表格增加列宽约束和 ellipsis 省略号
- 修复主题切换按钮在暗色侧边栏中不可见
- 表格添加 scroll 属性防止窄屏溢出
- 自定义表格空状态提示文案
This commit is contained in:
2026-04-16 22:59:26 +08:00
parent 870004af23
commit c5b3d9dfc7
10 changed files with 106 additions and 12 deletions

View File

@@ -40,22 +40,29 @@ export function StatsTable({
title: '供应商',
dataIndex: 'providerId',
key: 'providerId',
width: 180,
ellipsis: { showTitle: true },
render: (id: string) => providerMap.get(id) ?? id,
},
{
title: '模型',
dataIndex: 'modelName',
key: 'modelName',
width: 250,
ellipsis: { showTitle: true },
},
{
title: '日期',
dataIndex: 'date',
key: 'date',
width: 120,
},
{
title: '请求数',
dataIndex: 'requestCount',
key: 'requestCount',
width: 100,
align: 'right',
},
];
@@ -89,6 +96,8 @@ export function StatsTable({
rowKey="id"
loading={loading}
pagination={{ pageSize: 20 }}
scroll={{ x: 650 }}
locale={{ emptyText: '暂无统计数据' }}
/>
</Card>
);