Browse Source

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

pull/2285/head
zhangcheng1164 4 years ago
committed by GitHub
parent
commit
dda27477af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/components/Table/src/components/settings/ColumnSetting.vue

4
src/components/Table/src/components/settings/ColumnSetting.vue

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

Loading…
Cancel
Save