wsj
4 days ago fe1692fd7f4f307fea8054da6c6c50d5df2bf2d8
.claude/skills/new-page/templates/table-page/index.tsx
@@ -5,7 +5,7 @@
import { App as AntdApp, Button } from 'antd';
import { createXxxColumns } from './columns';
import { deleteXxx, getXxxList } from './server';
import type { XxxQuery, XxxRecord } from './types';
import type { XxxListParams, XxxQuery, XxxRecord } from './types';
import './Xxx.scss';
const Xxx = () => {
@@ -35,13 +35,17 @@
    [handleDelete],
  );
  const fetchList = useCallback(
    (params: XxxListParams) => getXxxList(params),
    [],
  );
  return (
    <div className="xxx-page">
      <ProTable<XxxRecord, XxxQuery>
        rowKey="key"
        actionRef={actionRef}
        columns={columns}
        cardProps={{ className: 'xxx-table-card' }}
        search={{ labelWidth: 'auto', defaultCollapsed: false }}
        scroll={{ x: 900 }}
        options={false}
@@ -61,7 +65,7 @@
            新增
          </Button>,
        ]}
        request={(params) => getXxxList(params)}
        request={fetchList}
      />
    </div>
  );