Skip to content

Commit

Permalink
chore: update common
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Jun 27, 2024
1 parent be24bac commit a380c20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/_common
2 changes: 1 addition & 1 deletion src/table/hooks/useColumnResize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export default function useColumnResize(params: {

if (!effectNextCol?.colKey) {
// 已经不存在最后一列,比如整个表格只有一列可以调整的场景,需要直接影响到表格本身的宽度
if (resizeLineParams.effectCol) newThWidthList[tmpCurrentCol?.colKey] -= moveDistance;
if (resizeLineParams.effectCol === 'next') newThWidthList[tmpCurrentCol?.colKey] -= moveDistance;
else newThWidthList[tmpCurrentCol?.colKey] += moveDistance;
newThWidthList.tableWidth = getTotalTableWidth(newThWidthList);
} else if (resizeLineParams.effectCol === 'next') {
Expand Down

0 comments on commit a380c20

Please sign in to comment.