feat: 订单列表
This commit is contained in:
@@ -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
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user