框架优化

This commit is contained in:
liamzi
2024-12-25 18:34:20 +08:00
parent ac0f7ccbb7
commit a6a4cbb337
28 changed files with 56 additions and 117 deletions

View File

@@ -92,7 +92,6 @@ const CustomerPage = () => {
dataIndex: 'created_at',
key: 'created_at',
sorter: true,
width: 180,
render: (text) => (
<span>{new Date(text).toLocaleString('zh-CN', {
year: 'numeric',
@@ -106,7 +105,7 @@ const CustomerPage = () => {
{
title: '操作',
key: 'action',
width: 150,
fixed: 'right',
render: (_, record) => (
<Space size={0}>
<Button
@@ -157,6 +156,7 @@ const CustomerPage = () => {
columns={columns}
dataSource={customers}
rowKey="id"
scroll={{ x: true }}
loading={loading}
onChange={handleTableChange}
pagination={{