change code editor to codemirror.

This commit is contained in:
xuyue committed 2023-04-07 10:00:29 +08:00
1 parent 007de440d6
commit 0862b0ff91
14 files changed
+335 -2744

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ import {
uploadTestcases,
} from "../api"
const Monaco = defineAsyncComponent(() => import("~/shared/Monaco.vue"))
const CodeEditor = defineAsyncComponent(() => import("~/shared/CodeEditor.vue"))
interface Props {
problemID?: string
@@ -429,7 +429,7 @@ watch([fromExistingTags, newTags], (tags) => {
:key="index"
:name="lang"
>
<Monaco
<CodeEditor
v-model:value="template[lang]"
:language="lang"
:font-size="16"