Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-editor
Commits
2803508e
Commit
2803508e
authored
Jan 06, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时改回codemirror, monaco还有问题
parent
9d65fff6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
MetaEditorDialog.vue
src/views/Editor/behavior-editor/MetaEditorDialog.vue
+7
-6
No files found.
src/views/Editor/behavior-editor/MetaEditorDialog.vue
View file @
2803508e
...
...
@@ -99,12 +99,13 @@
:options="cmOptions"
@cursorActivity="onCodeChange"
/>-->
<monaco-editor
<
!--<
monaco-editor
ref="codeEditor"
v-if="meta"
:code="meta.script"
:options="monacoConfig"
/>
/>-->
<code-editor
v-if=
"meta"
v-model=
"meta.script"
/>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
class=
"button-bar"
>
...
...
@@ -133,23 +134,23 @@
<
script
>
import
ElFormItem
from
"./inputs/form-item"
;
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
{
clonePureObj
}
from
"../../../utils"
;
import
events
from
"../../../global-events"
;
import
CodeSyncIndicator
from
"../BottomBar/CodeSyncIndicator"
;
import
CodeEditor
from
"./CodeEditor"
;
const
exposeVariables
=
[
"args"
,
"props"
,
"target"
,
"global"
,
"vm"
,
"engine"
];
export
default
{
name
:
"MetaEditorDialog"
,
components
:
{
CodeEditor
,
CodeSyncIndicator
,
PropsEditorDialog
,
ElFormItem
,
monaco
,
"monaco-editor"
:
MonacoEditor
//"monaco-editor": MonacoEditor
},
data
()
{
return
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment