style(frontend): 全项目表格统一百分比布局并居中

This commit is contained in:
yml2213
2026-10-24 14:49:23 +08:00
parent a96229a106
commit ce8efa6bad
52 changed files with 346 additions and 145 deletions
@@ -11,11 +11,11 @@ import {
Select,
Space,
Statistic,
Table,
Tabs,
Tag,
Typography,
} from 'antd'
import PercentTable from '@/components/common/PercentTable'
import type { TableColumnsType } from 'antd'
import { useState } from 'react'
@@ -386,7 +386,7 @@ export default function AdminSalesProfitPage() {
key: 'daily',
label: '日报',
children: (
<Table
<PercentTable
rowKey="statDate"
size="small"
columns={dailyColumns}
@@ -401,7 +401,7 @@ export default function AdminSalesProfitPage() {
key: 'product',
label: '商品',
children: (
<Table
<PercentTable
rowKey={(row) => `${row.canonicalProductId || 'unmapped'}`}
size="small"
columns={productColumns}
@@ -416,7 +416,7 @@ export default function AdminSalesProfitPage() {
key: 'fulfillment-mode',
label: '履约方式',
children: (
<Table
<PercentTable
rowKey="fulfillmentMode"
size="small"
columns={fulfillmentModeColumns}
@@ -431,7 +431,7 @@ export default function AdminSalesProfitPage() {
key: 'facts',
label: '事实明细',
children: (
<Table
<PercentTable
rowKey="id"
size="small"
columns={factColumns}