fix: 修复ColumnSetting中列展示复选框在所有普通列都处于选中状态时没有处于选中状态的bug (#2278) (#2280)

This commit is contained in:
zhangcheng1164 2022-10-14 23:41:41 +08:00 committed by GitHub
parent 1a8cdeb374
commit dda27477af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@
const columns = getColumns(); const columns = getColumns();
const checkList = table const checkList = table
.getColumns({ ignoreAction: true }) .getColumns({ ignoreAction: true, ignoreIndex: true })
.map((item) => { .map((item) => {
if (item.defaultHidden) { if (item.defaultHidden) {
return ''; return '';
@ -258,7 +258,7 @@
const indeterminate = computed(() => { const indeterminate = computed(() => {
const len = plainOptions.value.length; const len = plainOptions.value.length;
let checkedLen = state.checkedList.length; let checkedLen = state.checkedList.length;
unref(checkIndex) && checkedLen--; // unref(checkIndex) && checkedLen--;
return checkedLen > 0 && checkedLen < len; return checkedLen > 0 && checkedLen < len;
}); });