fix: 修复ColumnSetting中默认隐藏列拖拽排序错误的bug (#1931)

Co-authored-by: 顾佳磊 <jareygu@gmail.com>
This commit is contained in:
小顾 2022-06-16 19:02:33 +08:00 committed by GitHub
parent 19dc88b4e0
commit 50468e9581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,7 +313,12 @@
}
plainSortOptions.value = columns;
setColumns(columns);
setColumns(
columns
.map((col: Options) => col.value)
.filter((value: string) => state.checkedList.includes(value)),
);
},
});
// order