|
@@ -147,7 +147,7 @@ export function useTableScroll(
|
|
|
const tableEl = tableElRef.current
|
|
const tableEl = tableElRef.current
|
|
|
|
|
|
|
|
const tableWidth = tableEl && tableEl?.offsetWidth
|
|
const tableWidth = tableEl && tableEl?.offsetWidth
|
|
|
- console.log(tableEl, tableWidth - 48, width)
|
|
|
|
|
|
|
+ console.log(tableWidth - 48, width)
|
|
|
|
|
|
|
|
return tableWidth - 48 > width ? '100%' : width
|
|
return tableWidth - 48 > width ? '100%' : width
|
|
|
}, [selectKeysRef, columnsRef, tableElRef?.current])
|
|
}, [selectKeysRef, columnsRef, tableElRef?.current])
|