Move SQL table picker next to the language selector

Previously the candidate-table dropdown lived inside SqlSection's
content pane; moved it into the header alongside SelectLanguage so
table selection is visible regardless of scroll position.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-05 00:15:02 -06:00
parent b30e8c9ee6
commit 62ef50fb76
3 changed files with 38 additions and 40 deletions

View File

@@ -2,8 +2,9 @@
import { Icon } from "@iconify/vue"
import { useMessage } from "naive-ui"
import SelectLanguage from "../components/SelectLanguage.vue"
import SelectSqlTable from "../components/SelectSqlTable.vue"
import ThemeButton from "../components/ThemeButton.vue"
import { loading, run, share, size } from "../composables/code"
import { code, loading, run, share, size } from "../composables/code"
const message = useMessage()
@@ -34,6 +35,7 @@ function handleShare() {
<template #prefix>字号</template>
</n-input-number>
<SelectLanguage />
<SelectSqlTable v-if="code.language === 'sql'" />
<n-button type="primary" @click="run" :disabled="loading">
运行 (F5)
</n-button>