Unverified Commit f4de8914 authored by wellCh4n's avatar wellCh4n Committed by GitHub

[fix][web] switch editor tab doesn't work (#1388)

* [fix][web] switch editor tab doesn't work * [fix][web] switch editor tab doesn't work * [fix][web] switch editor tab doesn't work
parent e0fbf3ab
......@@ -40,6 +40,7 @@ const CodeEdit = (props: CodeEditFormProps) => {
selectOnLineNumbers: true,
renderSideBySide: false,
autoIndent: 'None',
automaticLayout: true,
},
onChange,
code,
......
......@@ -41,6 +41,7 @@ const CodeShow = (props: CodeShowFormProps) => {
renderSideBySide: false,
autoIndent: 'None',
readOnly: true,
automaticLayout: true,
},
code,
} = props;
......
......@@ -51,6 +51,7 @@ const FlinkSqlEditor = (props:any) => {
selectOnLineNumbers: true,
renderSideBySide: false,
autoIndent:'None',
automaticLayout: true,
},
sql,
monaco,
......
......@@ -230,6 +230,9 @@ const Console = (props: any) => {
language={currentDatabase.type.toLowerCase()}
theme="vs-dark"
editorDidMount={editorDidMountHandle}
options={{
automaticLayout: true,
}}
/>
</Col>
</Row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment