提交 4fd2051b 编写于 作者: 无木

fix(table): settings indeterminate state effect

修复存在操作列的情况下,表格设置组件中的半选状态显示不正确的问题
上级 a96cb250
......@@ -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;
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册