fix: resolve vue-tsc type errors in SqlPreviewPanel and DataGrid
This commit is contained in:
1 parent
42a7ecdbed
commit
500d7c614b
2 files changed
+2
-4
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user