Feature: SQL 编辑器右键支持编辑表结构 (#2456)

Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
This commit is contained in:
zipgandstaff authored and GitHub committed 2026-07-02 20:20:32 +08:00
1 parent d249bd5ac8
commit 4c96aa6e40
3 files changed
+27 -1

No files matched your search

+7
View File
@@ -1135,6 +1135,12 @@ function onViewTableDdl(tableName: string) {
showQueryEditorDdlDialog.value = true;
}
function onEditTableStructure(tableName: string) {
const target = tableTargetFromActiveTab(tableName);
if (!target) return;
queryStore.openTableStructure(target.connectionId, target.database, target.schema, target.tableName);
}
async function changeActiveConnection(connectionId: string) {
const tab = activeTab.value;
if (!tab) return;
@@ -1839,6 +1845,7 @@ onUnmounted(() => {
@execute-sql="onExecuteSql"
@click-table="onClickTable"
@view-table-data="onViewTableData"
@edit-table-structure="onEditTableStructure"
@view-table-ddl="onViewTableDdl"
@open-object-table="
(target) =>