fix(grid): keep column comments when opening filtered tables

This commit is contained in:
t8y2 committed 2026-06-02 19:28:17 +08:00
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;
});