style(frontend): 全项目表格统一百分比布局并居中
This commit is contained in:
@@ -18,7 +18,6 @@ import {
|
||||
Space,
|
||||
Spin,
|
||||
Switch,
|
||||
Table,
|
||||
Tag,
|
||||
Typography,
|
||||
} from 'antd'
|
||||
|
||||
@@ -19,11 +19,11 @@ import {
|
||||
Space,
|
||||
Spin,
|
||||
Switch,
|
||||
Table,
|
||||
Tabs,
|
||||
Tag,
|
||||
Typography,
|
||||
} from 'antd'
|
||||
import PercentTable from '@/components/common/PercentTable'
|
||||
import type { TableColumnsType } from 'antd'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useSearchParams } from 'react-router'
|
||||
@@ -1106,7 +1106,7 @@ function KuaishouIndustryPanel({
|
||||
{shops.length === 0 ? (
|
||||
<Empty description="暂无店铺授权" />
|
||||
) : (
|
||||
<Table<AdminKuaishouIndustryShopConfig>
|
||||
<PercentTable<AdminKuaishouIndustryShopConfig>
|
||||
rowKey={(row, index) => buildIndustryShopRowKey(row, index || 0)}
|
||||
columns={shopColumns}
|
||||
dataSource={shops}
|
||||
@@ -1694,7 +1694,7 @@ function AffiliateDashPlatformPanel() {
|
||||
<Typography.Text code>apps/backend/.../affiliate-dash/sku-mapping.ts</Typography.Text>
|
||||
,与平台商品目录对齐。
|
||||
</Typography.Paragraph>
|
||||
<Table<SkuMappingRow>
|
||||
<PercentTable<SkuMappingRow>
|
||||
rowKey={(row) => row.productNo}
|
||||
size="small"
|
||||
pagination={{ pageSize: 10, showSizeChanger: false }}
|
||||
@@ -1760,7 +1760,7 @@ function AffiliateDashPlatformPanel() {
|
||||
</Typography.Text>
|
||||
) : null}
|
||||
</Space>
|
||||
<Table<AdminAffiliateDashProductItem>
|
||||
<PercentTable<AdminAffiliateDashProductItem>
|
||||
rowKey="sku"
|
||||
size="small"
|
||||
loading={productsLoading}
|
||||
|
||||
@@ -39,11 +39,11 @@ import {
|
||||
Spin,
|
||||
Statistic,
|
||||
Switch,
|
||||
Table,
|
||||
Tag,
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from 'antd'
|
||||
import PercentTable from '@/components/common/PercentTable'
|
||||
import type { TableColumnsType } from 'antd'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
@@ -986,7 +986,7 @@ export function PddPlatformPanel() {
|
||||
</Button>
|
||||
}
|
||||
>
|
||||
<Table
|
||||
<PercentTable
|
||||
rowKey="shopId"
|
||||
columns={columns}
|
||||
dataSource={config.stores}
|
||||
|
||||
Reference in New Issue
Block a user