Skip to content

Commit

Permalink
fix(frontend): sql执行上传大文件时页面卡死 #8690
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 27126
  • Loading branch information
hLinx authored and iSecloud committed Dec 18, 2024
1 parent e2be9bf commit ecaf8b6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
v-model="localModelValue"
v-bind="attrs"
:cluster-version-list="clusterVersionList"
:is-show="isShow"
@grammar-check="handleGrammarCheck" />
</KeepAlive>
</div>
Expand Down Expand Up @@ -89,7 +90,7 @@
default: false,
});
const importMode = defineModel<keyof typeof comMap>('importMode', {
const importMode = defineModel<'manual' | 'file'>('importMode', {
required: true,
});
const modelValue = defineModel<string[]>('modelValue', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@
theme: 'vs-dark',
readOnly: props.readonly,
wordWrap: 'bounded',
lineNumbersMinChars: 3,
renderLineHighlight: 'none',
minimap: {
enabled: false,
},
scrollbar: {
alwaysConsumeMouseWheel: false,
},
Expand Down Expand Up @@ -194,8 +199,8 @@
height: 100%;

&.is-full-screen {
height: 100vh;
display: flex;
height: 100vh;
flex-direction: column;

.editor-resize-wrapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
:opacity="0.3"
style="height: 100%">
<Editor
v-if="isShow"
:message-list="selectFileData.messageList"
:model-value="selectFileData.content"
readonly
Expand Down Expand Up @@ -91,6 +92,7 @@

interface Props {
clusterVersionList: string[];
isShow: boolean;
}

interface Emits {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
style="position: relative">
<template v-if="selectFileData">
<Editor
v-if="isShow"
:key="selectFileName"
v-model="selectFileData.content"
:message-list="selectFileData.messageList"
Expand Down Expand Up @@ -102,6 +103,7 @@

interface Props {
clusterVersionList: string[];
isShow: boolean;
}

interface Emits {
Expand Down

0 comments on commit ecaf8b6

Please sign in to comment.