Skip to content

Commit

Permalink
fix(pro:table): layoutool checkbox shouldn't be checkable when disabl…
Browse files Browse the repository at this point in the history
…ed (#1741)
  • Loading branch information
threedayAAAAA committed Nov 28, 2023
1 parent 9ecd14a commit 0905872
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/pro/table/src/contents/LayoutToolTree.tsx
Expand Up @@ -155,7 +155,11 @@ function disableColumn(column: ProTableColumn) {
if (changeIndex !== false && changeVisible !== false) {
return false
}
return { check: changeVisible === false, drag: changeIndex === false }
return {
check: changeVisible === false,
select: changeVisible === false,
drag: changeIndex === false,
}
}

function getCheckedKeys(columns: ProTableColumn[]) {
Expand Down

0 comments on commit 0905872

Please sign in to comment.