Skip to content

Commit

Permalink
【QQYUN-6424】table字段列表设置不显示后,再拖拽字段顺序,原本不显示的,又显示了 ---
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdaiscott committed Sep 6, 2023
1 parent 24d4cef commit ed4b387
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/Table/src/components/settings/ColumnSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,15 @@
}
plainSortOptions.value = columns;
setColumns(columns);
// update-begin--author:liaozhiyang---date:20230904---for:【QQYUN-6424】table字段列表设置不显示后,再拖拽字段顺序,原本不显示的,又显示了
if(state.checkedList.length != columns.length){
const cols = columns.map(item => item.value);
const arr = cols.filter((cItem) => state.checkedList.find((lItem) => lItem === cItem));
setColumns(arr);
} else {
setColumns(columns);
}
// update-begin--author:liaozhiyang---date:20230904---for:【QQYUN-6424】table字段列表设置不显示后,再拖拽字段顺序,原本不显示的,又显示了
},
});
// 记录原始 order 序列
Expand Down

0 comments on commit ed4b387

Please sign in to comment.