Skip to content

Commit

Permalink
fix(table): settings indeterminate state effect
Browse files Browse the repository at this point in the history
修复存在操作列的情况下,表格设置组件中的半选状态显示不正确的问题
  • Loading branch information
mynetfan committed Jun 6, 2021
1 parent a96cb25 commit 4fd2051
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
const columns = getColumns();
const checkList = table
.getColumns()
.getColumns({ ignoreAction: true })
.map((item) => {
if (item.defaultHidden) {
return '';
Expand Down Expand Up @@ -244,9 +244,7 @@
const indeterminate = computed(() => {
const len = plainOptions.value.length;
let checkdedLen = state.checkedList.length;
if (unref(checkIndex)) {
checkdedLen--;
}
unref(checkIndex) && checkdedLen--;
return checkdedLen > 0 && checkdedLen < len;
});
Expand Down

0 comments on commit 4fd2051

Please sign in to comment.