mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-20 00:17:44 +00:00
fix: resolve vue-tsc type errors in SqlPreviewPanel and DataGrid
This commit is contained in:
@@ -24,7 +24,6 @@ const { t } = useI18n();
|
||||
const { isDark } = useTheme();
|
||||
const { toast } = useToast();
|
||||
|
||||
const codeContainerRef = ref<HTMLDivElement>();
|
||||
const isFormatted = ref(false);
|
||||
const formattedSql = ref("");
|
||||
const formatting = ref(false);
|
||||
@@ -183,7 +182,7 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
|
||||
<!-- Shiki highlighted SQL -->
|
||||
<div v-else-if="highlightedHtml" ref="codeContainerRef" class="p-3 text-xs leading-relaxed [&_pre]:!bg-transparent [&_pre]:!p-0 [&_code]:!font-mono [&_code]:text-xs" v-html="highlightedHtml" />
|
||||
<div v-else-if="highlightedHtml" class="p-3 text-xs leading-relaxed [&_pre]:!bg-transparent [&_pre]:!p-0 [&_code]:!font-mono [&_code]:text-xs" v-html="highlightedHtml" />
|
||||
|
||||
<!-- Plain text fallback -->
|
||||
<pre v-else class="p-3 text-xs font-mono whitespace-pre-wrap select-text">{{ displaySql }}</pre>
|
||||
|
||||
@@ -4,7 +4,7 @@ const globalDdlOpen = ref(false);
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, nextTick, onMounted, onUnmounted, onActivated, onDeactivated, useSlots, watch, ref, defineAsyncComponent, type Component } from "vue";
|
||||
import { computed, nextTick, onMounted, onUnmounted, onActivated, onDeactivated, useSlots, watch, defineAsyncComponent, type Component } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import {
|
||||
ArrowUp,
|
||||
@@ -1997,7 +1997,6 @@ const {
|
||||
clearResetScrollAfterResult,
|
||||
cleanupFrames,
|
||||
recordScrollPosition,
|
||||
previewStatements,
|
||||
isPreviewLoading,
|
||||
previewChanges,
|
||||
} = editor;
|
||||
|
||||
Reference in New Issue
Block a user