Commit dda27477af2109dd7c40359b9dc16154d2fbba85

Authored by zhangcheng1164
Committed by GitHub
1 parent 1a8cdeb3

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

src/components/Table/src/components/settings/ColumnSetting.vue
... ... @@ -213,7 +213,7 @@
213 213 const columns = getColumns();
214 214  
215 215 const checkList = table
216   - .getColumns({ ignoreAction: true })
  216 + .getColumns({ ignoreAction: true, ignoreIndex: true })
217 217 .map((item) => {
218 218 if (item.defaultHidden) {
219 219 return '';
... ... @@ -258,7 +258,7 @@
258 258 const indeterminate = computed(() => {
259 259 const len = plainOptions.value.length;
260 260 let checkedLen = state.checkedList.length;
261   - unref(checkIndex) && checkedLen--;
  261 + // unref(checkIndex) && checkedLen--;
262 262 return checkedLen > 0 && checkedLen < len;
263 263 });
264 264  
... ...