feat: 订单列表

This commit is contained in:
2025-10-16 16:32:59 +08:00
parent a5b7207f44
commit 3c7473f8d1
48 changed files with 1917 additions and 624 deletions

View File

@@ -17,25 +17,11 @@ function EnhancedProTable<T extends BaseRecord, U extends ParamsType = any>(
const {
columns,
request,
// actions = [],
// permissions = [],
// checkPermission = () => true,
components,
search = {},
toolbarActions,
// showIndex = true,
// showActions = true,
// maxActionCount = 2,
// onAdd,
// onEdit,
// onDelete,
// onView,
// onExport,
// customToolbarRender,
// showSelection = true,
rowKey = 'id',
// onRow,
// rowClassName,
// enableRowClick = false,
// clickableRowClassName = "clickable-row", // 添加可点击样式
pagination = true,
...restProps
} = props;
@@ -120,25 +106,37 @@ function EnhancedProTable<T extends BaseRecord, U extends ParamsType = any>(
manualRequest={false}
showSorterTooltip
scroll={{ x: 'max-content' }}
search={{
labelWidth: 'auto',
defaultCollapsed: false,
...restProps.search,
}}
options={{
fullScreen: true,
reload: true,
setting: true,
density: true,
...restProps.options,
}}
pagination={{
showSizeChanger: true,
showQuickJumper: true,
pageSize: 10,
showTotal: formatPaginationTotal,
...restProps.pagination,
}}
components={components}
search={
search
? {
labelWidth: 'auto',
defaultCollapsed: false,
...search,
}
: false
}
options={
search
? {
fullScreen: true,
reload: true,
setting: true,
density: true,
...restProps.options,
}
: false
}
pagination={
pagination
? {
showSizeChanger: true,
showQuickJumper: true,
pageSize: 10,
showTotal: formatPaginationTotal,
}
: false
}
/>
);
}