fix: table sorter

This commit is contained in:
jialin
2025-12-11 13:33:41 +08:00
parent 3328828da6
commit b38bc8a207
15 changed files with 106 additions and 23 deletions
@@ -36,6 +36,7 @@ const Workers: React.FC = () => {
queryParams,
modalRef,
extraStatus,
sortOrder,
handleDelete,
handleDeleteBatch,
fetchData,
@@ -238,6 +239,7 @@ const Workers: React.FC = () => {
clusterData,
loadend: dataSource.loadend,
firstLoad: extraStatus.firstLoad,
sortOrder,
handleSelect
});
@@ -267,6 +269,7 @@ const Workers: React.FC = () => {
<ConfigProvider renderEmpty={renderEmpty}>
<Table
columns={columns}
sortDirections={['ascend', 'descend', 'ascend']}
tableLayout={dataSource.loadend ? 'auto' : 'fixed'}
style={{ width: '100%' }}
dataSource={dataSource.dataList}