|
|
@@ -204,7 +204,9 @@ export function useTable<T extends Record<string, any>>(
|
|
|
if (preloadData?.tableOrder)
|
|
|
return JSON.parse(preloadData?.tableOrder) as string[];
|
|
|
|
|
|
- return [];
|
|
|
+ const nextList = columns.map(val => val.dataIndex.toString());
|
|
|
+
|
|
|
+ return hasGroup ? [] : ['select', 'no', ...nextList];
|
|
|
});
|
|
|
const [sorting, setSorting] = useState<SortingState>([]);
|
|
|
const onSortingChangeFn = useLatest(onSortingChange);
|
|
|
@@ -248,7 +250,6 @@ export function useTable<T extends Record<string, any>>(
|
|
|
{id: overId} = over;
|
|
|
const {disabledSort} = (over.data.current as any).header.column.columnDef
|
|
|
.meta;
|
|
|
-
|
|
|
if (disabledSort)
|
|
|
return;
|
|
|
|