fix(grid): keep column comments when opening filtered tables
This commit is contained in:
1 parent
0aab07e923
commit
2bdbcec65b
2 files changed
+41
-29
No files matched your search
@@ -308,6 +308,11 @@ const columnCommentMap = computed(() => {
|
||||
for (const col of props.tableMeta.columns) {
|
||||
if (col.comment) map.set(col.name, col.comment);
|
||||
}
|
||||
for (const col of props.tableMeta.columns) {
|
||||
if (!col.comment) continue;
|
||||
const normalizedName = col.name.toLowerCase();
|
||||
if (!map.has(normalizedName)) map.set(normalizedName, col.comment);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user