mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-02-03 03:32:59 +08:00
fix(table): settings indeterminate state effect
修复存在操作列的情况下,表格设置组件中的半选状态显示不正确的问题
This commit is contained in:
parent
a96cb2509c
commit
4fd2051bc0
@ -200,7 +200,7 @@
|
||||
const columns = getColumns();
|
||||
|
||||
const checkList = table
|
||||
.getColumns()
|
||||
.getColumns({ ignoreAction: true })
|
||||
.map((item) => {
|
||||
if (item.defaultHidden) {
|
||||
return '';
|
||||
@ -244,9 +244,7 @@
|
||||
const indeterminate = computed(() => {
|
||||
const len = plainOptions.value.length;
|
||||
let checkdedLen = state.checkedList.length;
|
||||
if (unref(checkIndex)) {
|
||||
checkdedLen--;
|
||||
}
|
||||
unref(checkIndex) && checkdedLen--;
|
||||
return checkdedLen > 0 && checkdedLen < len;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user