feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面

This commit is contained in:
zhanjunhao
2026-11-09 21:45:37 +08:00
parent 9fc5fd212d
commit 28e924e371
242 changed files with 9242 additions and 5043 deletions
+23 -9
View File
@@ -22,7 +22,7 @@ import { Card, Table, Button } from '@/components/ui';
import { IconDownload } from '@/components/ui/icons';
import { renderQuota } from '../../helpers';
const DailyStatsTable = ({ data, title, icon, t }) => {
const DailyStatsTable = ({ data, title, icon, t, embedded = false }) => {
const columns = [
{
title: t('日期'),
@@ -161,13 +161,29 @@ const DailyStatsTable = ({ data, title, icon, t }) => {
return (
<Card
className='shadow-sm hover:shadow-md transition-shadow'
className={`shadow-sm hover:shadow-md transition-shadow ${embedded ? 'analytics-fold-content' : ''}`}
title={
<div className='flex items-center justify-between w-full'>
<div className='flex items-center gap-2'>
<span className='text-brand'>{icon}</span>
<span className='font-semibold'>{title}</span>
embedded ? undefined : (
<div className='flex items-center justify-between w-full'>
<div className='flex items-center gap-2'>
<span className='text-brand'>{icon}</span>
<span className='font-semibold'>{title}</span>
</div>
<Button
icon={<IconDownload />}
size='small'
onClick={handleExport}
disabled={!data || data.length === 0}
>
{t('导出CSV')}
</Button>
</div>
)
}
bodyStyle={{ padding: '0' }}
>
{embedded && (
<div className='flex justify-end p-4'>
<Button
icon={<IconDownload />}
size='small'
@@ -177,9 +193,7 @@ const DailyStatsTable = ({ data, title, icon, t }) => {
{t('导出CSV')}
</Button>
</div>
}
bodyStyle={{ padding: '0' }}
>
)}
<Table
columns={columns}
dataSource={data || []}