diff --git a/src/VirtualTable/BodyGrid.tsx b/src/VirtualTable/BodyGrid.tsx index e3aa85f49..4ea09dc58 100644 --- a/src/VirtualTable/BodyGrid.tsx +++ b/src/VirtualTable/BodyGrid.tsx @@ -57,9 +57,10 @@ const Grid = React.forwardRef((props, ref) => { // ========================== Column ========================== const columnsWidth = React.useMemo<[key: React.Key, width: number, total: number][]>(() => { let total = 0; - return flattenColumns.map(({ width, key }) => { - total += width as number; - return [key, width as number, total]; + return flattenColumns.map(({ width, minWidth, key }) => { + const finalWidth = Math.max((width as number) || 0, (minWidth as number) || 0); + total += finalWidth; + return [key, finalWidth, total]; }); }, [flattenColumns]);