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 @@
...
@@ -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
{
...
...
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