diff --git a/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/Index.vue index bad22c5139..2cbeec0a08 100644 --- a/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/Index.vue @@ -39,6 +39,7 @@ v-model="localModelValue" v-bind="attrs" :cluster-version-list="clusterVersionList" + :is-show="isShow" @grammar-check="handleGrammarCheck" /> @@ -89,7 +90,7 @@ default: false, }); - const importMode = defineModel('importMode', { + const importMode = defineModel<'manual' | 'file'>('importMode', { required: true, }); const modelValue = defineModel('modelValue', { diff --git a/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/components/editor/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/components/editor/Index.vue index dbf770d10f..64ff1656b0 100644 --- a/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/components/editor/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/components/editor/Index.vue @@ -163,6 +163,11 @@ theme: 'vs-dark', readOnly: props.readonly, wordWrap: 'bounded', + lineNumbersMinChars: 3, + renderLineHighlight: 'none', + minimap: { + enabled: false, + }, scrollbar: { alwaysConsumeMouseWheel: false, }, @@ -194,8 +199,8 @@ height: 100%; &.is-full-screen { - height: 100vh; display: flex; + height: 100vh; flex-direction: column; .editor-resize-wrapper { diff --git a/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/components/local-file/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/components/local-file/Index.vue index b8d55b2bd6..37f5454b9e 100644 --- a/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/components/local-file/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/common/sql-execute/common/RenderSql/components/sql-content/components/local-file/Index.vue @@ -43,6 +43,7 @@ :opacity="0.3" style="height: 100%">