Browse Source
fix: 修复ColumnSetting中默认隐藏列拖拽排序错误的bug (#1931)
Co-authored-by: 顾佳磊 <jareygu@gmail.com>
pull/1975/head
小顾
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
src/components/Table/src/components/settings/ColumnSetting.vue
|
|
|
@ -313,7 +313,12 @@ |
|
|
|
} |
|
|
|
|
|
|
|
plainSortOptions.value = columns; |
|
|
|
setColumns(columns); |
|
|
|
|
|
|
|
setColumns( |
|
|
|
columns |
|
|
|
.map((col: Options) => col.value) |
|
|
|
.filter((value: string) => state.checkedList.includes(value)), |
|
|
|
); |
|
|
|
}, |
|
|
|
}); |
|
|
|
// 记录原始order 序列 |
|
|
|
|