فهرست منبع

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

zhangcheng1164 2 سال پیش
والد
کامیت
dda27477af
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/components/Table/src/components/settings/ColumnSetting.vue

+ 2 - 2
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;
       });