From 8129ecda88b349b2dac275c4343c33c9d6fe6cb7 Mon Sep 17 00:00:00 2001 From: zipg Date: Wed, 1 Jul 2026 12:51:44 +0800 Subject: [PATCH] fix(editor): keep edit-structure entry across table property tabs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 保留表属性编辑结构入口 * fix: 加深表属性页签选中态 --------- Co-authored-by: staff --- apps/desktop/src/components/grid/DataGrid.vue | 32 ++++++++--------- .../src/components/layout/ContentArea.vue | 2 ++ .../structure/TableStructureEditor.vue | 35 ++++++++++++++----- apps/desktop/src/stores/queryStore.ts | 13 +++++-- apps/desktop/src/types/database.ts | 2 ++ packages/app-tests/queryStore.test.ts | 24 +++++++++++++ 6 files changed, 81 insertions(+), 27 deletions(-) diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue index a2214bd2f6..5af714363f 100644 --- a/apps/desktop/src/components/grid/DataGrid.vue +++ b/apps/desktop/src/components/grid/DataGrid.vue @@ -6895,7 +6895,7 @@ function copyDdl() { function openTableStructureEditor() { if (!props.connectionId || !props.database || !props.tableMeta?.tableName || !canOpenTableStructureEditor.value) return; - queryStore.openTableStructure(props.connectionId, props.database, props.tableMeta.schema, props.tableMeta.tableName); + queryStore.openTableStructure(props.connectionId, props.database, props.tableMeta.schema, props.tableMeta.tableName, activeTableInfoTab.value); } function toggleDdlWrap() { @@ -8656,18 +8656,18 @@ const gridContextMenuItems = computed(() => {
{{ tableMeta?.tableName }} -
- - +
-