feat(editor): 持久化SQL编辑器光标位置

Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
This commit is contained in:
zipgandzipg authored and GitHub committed 2026-09-08 11:01:41 +08:00
1 parent 772ce36de8
commit 5fb667716f
7 files changed
+52 -2

No files matched your search

+1
View File
@@ -3573,6 +3573,7 @@ onUnmounted(() => {
"
@editor-viewport-change="(tabId: string, viewport: { scrollTop: number; scrollLeft: number }) => queryStore.updateEditorViewport(tabId, viewport)"
@editor-selection-state-change="(tabId: string, selection: { anchor: number; head: number }) => queryStore.updateEditorSelection(tabId, selection)"
@editor-state-flushed="(tabId: string) => void queryStore.flushEditorState(tabId)"
@format-error="toast(t('toolbar.formatSqlFailed'))"
@save-sql="(tabId: string) => void openSaveSqlDialog(tabId)"
@reload="(tabId: string, sql: any, searchText: any, whereInput: any, orderBy: any, limit: any, offset: any, intent: any) => onReloadData(tabId, sql, searchText, whereInput, orderBy, limit, offset, intent)"