feat(query-editor): 结果页列元数据跨库加载并实心化保存按钮

- 结果集携带 metadataDbName/TableName,列类型注释从真实库表加载
- 只读查询也解析 tableRef,避免结果页丢元数据
- 选择列底色与固定列对齐;保存按钮改为蓝色实心主按钮样式
- 独立结果窗/还原路径同步元数据字段
This commit is contained in:
Syngnat
2026-07-09 15:37:27 +08:00
parent af9f490172
commit 8d7e7a6ddf
7 changed files with 79 additions and 13 deletions

View File

@@ -287,6 +287,26 @@ body[data-ui-version="v2"] .ant-btn-primary:hover {
border-color: var(--gn-accent-2) !important;
}
/* 查询工具栏「保存」:与「运行」同款实心饱满,色值用蓝色 */
body[data-ui-version="v2"] .gn-v2-query-toolbar-save-action.ant-btn-primary {
background: #2563eb !important;
border-color: #1d4ed8 !important;
color: #fff !important;
font-weight: 600 !important;
box-shadow: var(--gn-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.18) !important;
}
body[data-ui-version="v2"] .gn-v2-query-toolbar-save-action.ant-btn-primary:hover {
background: #1d4ed8 !important;
border-color: #1e40af !important;
color: #fff !important;
}
body[data-ui-version="v2"] .gn-v2-query-toolbar-save-action.ant-btn-primary:active {
background: #1e40af !important;
border-color: #1e3a8a !important;
}
body[data-ui-version="v2"] .ant-btn-primary:disabled {
background: var(--gn-bg-active) !important;
border-color: var(--gn-br-2) !important;
@@ -434,8 +454,24 @@ body[data-ui-version="v2"] .ant-table-tbody > tr:hover > td {
background: var(--gn-bg-hover) !important;
}
body[data-ui-version="v2"] .ant-table-tbody > tr.ant-table-row-selected > td {
body[data-ui-version="v2"] .ant-table-tbody > tr.ant-table-row-selected > td,
body[data-ui-version="v2"] .ant-table-tbody .ant-table-row.ant-table-row-selected > .ant-table-cell,
body[data-ui-version="v2"] .ant-table-tbody-virtual .ant-table-row.ant-table-row-selected > .ant-table-cell,
body[data-ui-version="v2"] .ant-table-tbody-virtual-holder .ant-table-row.ant-table-row-selected > .ant-table-cell,
body[data-ui-version="v2"] .gn-v2-data-grid .ant-table-row.ant-table-row-selected > .ant-table-cell {
background: var(--gn-bg-selected) !important;
background-color: var(--gn-bg-selected) !important;
background-image: none !important;
}
body[data-ui-version="v2"] .ant-table-tbody > tr.ant-table-row-selected:hover > td,
body[data-ui-version="v2"] .ant-table-tbody .ant-table-row.ant-table-row-selected:hover > .ant-table-cell,
body[data-ui-version="v2"] .ant-table-tbody-virtual .ant-table-row.ant-table-row-selected:hover > .ant-table-cell,
body[data-ui-version="v2"] .ant-table-tbody-virtual-holder .ant-table-row.ant-table-row-selected:hover > .ant-table-cell,
body[data-ui-version="v2"] .gn-v2-data-grid .ant-table-row.ant-table-row-selected:hover > .ant-table-cell {
background: var(--gn-bg-selected) !important;
background-color: var(--gn-bg-selected) !important;
background-image: none !important;
}
/* ─── Tags / Badges ────────────────────────────────────── */
@@ -3954,7 +3990,8 @@ body[data-ui-version="v2"] .gn-v2-data-grid .is-single-line-title .sortable-head
body[data-ui-version="v2"] .gn-v2-data-grid .ant-table-thead > tr > th:first-child,
body[data-ui-version="v2"] .gn-v2-data-grid .ant-table-selection-column {
width: 56px !important;
background: var(--gn-bg-panel-2) !important;
/* 与固定列(行号/钉住列)统一用 panel勿用 panel-2 造成色差 */
background: var(--gn-bg-panel) !important;
border-right: 0.5px solid var(--gn-br-1) !important;
}