refactor: convert table structure editor from modal dialog to tab

Replace the dialog-based TableStructureEditorDialog with a tab-based
TableStructureEditor, making it consistent with query editors, data
viewers, and object browsers. Users can now switch between editing
table structure and running queries freely.
This commit is contained in:
t8y2 committed 2026-05-24 21:17:35 +08:00
1 parent 72d5435535
commit 801434e423
16 files changed
+998 -1031

No files matched your search

+10 -1
View File
@@ -918,6 +918,16 @@ onUnmounted(() => {
})
"
@object-schema-change="(schema) => activeTab && queryStore.updateSchema(activeTab.id, schema)"
@structure-editor-saved="
activeTab &&
onStructureEditorSaved(onReloadData, toast, {
connectionId: activeTab.connectionId,
database: activeTab.database,
schema: activeTab.schema,
tableName: activeTab.structureTableName || '',
})
"
@structure-editor-close="activeTab && queryStore.closeTab(activeTab.id)"
/>
</KeepAlive>
</div>
@@ -1000,7 +1010,6 @@ onUnmounted(() => {
setConnectionDialogOpen(false);
showDriverStore = true;
"
@structure-editor-saved="onStructureEditorSaved(onReloadData, toast)"
@open-lineage-target="openLineageTarget"
@open-database-search-target="openDatabaseSearchTarget"
/>