Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fix lint for fragment component (#8748)

Liu Ji05aaf7506b5a
diff --git a/frontend/src/views/sql-editor/AsidePanel/TreeNode/HighlightLabelText.vue b/frontend/src/views/sql-editor/AsidePanel/TreeNode/HighlightLabelText.vue
index 9b425c1238..31fb8fa6af 100644
--- a/frontend/src/views/sql-editor/AsidePanel/TreeNode/HighlightLabelText.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/TreeNode/HighlightLabelText.vue
@@ -1,7 +1,7 @@
<template>
- <template v-if="!keyword.trim()">{{ text }}</template>
+ <span v-if="!keyword.trim()" v-bind="$attrs">{{ text }}</span>
<!-- eslint-disable-next-line vue/no-v-html -->
- <span v-else v-html="html" />
+ <span v-else v-bind="$attrs" v-html="html" />
</template>
<script lang="ts" setup>