|
|
@@ -40,7 +40,7 @@ function parseColumn<T extends Record<string, unknown>>(
|
|
|
...columns,
|
|
|
];
|
|
|
|
|
|
- let leftPosition = 0;
|
|
|
+ let leftPosition = enableSelect ? 48 : 0;
|
|
|
let rightPosition = parseColumns.reduce(function(prev, next) {
|
|
|
if (next.fixed !== 'right') return prev;
|
|
|
|
|
|
@@ -113,9 +113,9 @@ function parseColumn<T extends Record<string, unknown>>(
|
|
|
},
|
|
|
meta: {
|
|
|
align: 'center',
|
|
|
- fixed: false,
|
|
|
+ fixed: 'left',
|
|
|
disabledSort: true,
|
|
|
- fixedStyle: {},
|
|
|
+ fixedStyle: {left: 0},
|
|
|
},
|
|
|
}),
|
|
|
);
|
|
|
@@ -150,7 +150,7 @@ export function useTable<T extends Record<string, any>>(
|
|
|
if (preloadData?.tableWidth)
|
|
|
return JSON.parse(preloadData.tableWidth) as Record<string, number>;
|
|
|
|
|
|
- const obj: Record<string, number> = {no: 64, select: 20};
|
|
|
+ const obj: Record<string, number> = {no: 64, select: 48};
|
|
|
|
|
|
columns.forEach(function({dataIndex, width}) {
|
|
|
if (dataIndex && width)
|