From 569cb26261938bd6e1b1fb4479ee23a89ed6a5cb Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Wed, 6 May 2026 19:50:41 +0800 Subject: [PATCH] feat(grid): show column type and comment in tooltip instead of inline Move the column type annotation from inline display (#type) to a hover tooltip on the header cell. The tooltip shows the column type with color and comment (if present), matching the tab tooltip style. --- src/components/grid/DataGrid.vue | 54 ++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/src/components/grid/DataGrid.vue b/src/components/grid/DataGrid.vue index 7b21ffe8f7..4ac1985666 100644 --- a/src/components/grid/DataGrid.vue +++ b/src/components/grid/DataGrid.vue @@ -1305,31 +1305,37 @@ function escapeAndHighlightKeywords(s: string): string { > # -
- - {{ col }} - - - + +
- #{{ columnTypeMap.get(col) }} - - -
-
+ + {{ col }} + + + +
+
+ + + {{ t("grid.columnType") }} + {{ columnTypeMap.get(col) }} + + +