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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user