Commit 2803508e authored by rockyl's avatar rockyl

暂时改回codemirror, monaco还有问题

parent 9d65fff6
...@@ -99,12 +99,13 @@ ...@@ -99,12 +99,13 @@
:options="cmOptions" :options="cmOptions"
@cursorActivity="onCodeChange" @cursorActivity="onCodeChange"
/>--> />-->
<monaco-editor <!--<monaco-editor
ref="codeEditor" ref="codeEditor"
v-if="meta" v-if="meta"
:code="meta.script" :code="meta.script"
:options="monacoConfig" :options="monacoConfig"
/> />-->
<code-editor v-if="meta" v-model="meta.script"/>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<div class="button-bar"> <div class="button-bar">
...@@ -133,23 +134,23 @@ ...@@ -133,23 +134,23 @@
<script> <script>
import ElFormItem from "./inputs/form-item"; import ElFormItem from "./inputs/form-item";
import PropsEditorDialog from "./PropsEditorDialog"; import PropsEditorDialog from "./PropsEditorDialog";
import * as monaco from "monaco-editor"; //import MonacoEditor from "../components/MonacoEditor";
import MonacoEditor from "../components/MonacoEditor";
import copy from "copy-to-clipboard"; import copy from "copy-to-clipboard";
import { clonePureObj } from "../../../utils"; import { clonePureObj } from "../../../utils";
import events from "../../../global-events"; import events from "../../../global-events";
import CodeSyncIndicator from "../BottomBar/CodeSyncIndicator"; import CodeSyncIndicator from "../BottomBar/CodeSyncIndicator";
import CodeEditor from "./CodeEditor";
const exposeVariables = ["args", "props", "target", "global", "vm", "engine"]; const exposeVariables = ["args", "props", "target", "global", "vm", "engine"];
export default { export default {
name: "MetaEditorDialog", name: "MetaEditorDialog",
components: { components: {
CodeEditor,
CodeSyncIndicator, CodeSyncIndicator,
PropsEditorDialog, PropsEditorDialog,
ElFormItem, ElFormItem,
monaco, //"monaco-editor": MonacoEditor
"monaco-editor": MonacoEditor
}, },
data() { data() {
return { return {
......
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