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
c4b1baed
Commit
c4b1baed
authored
Dec 02, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文本字体问题
parent
105cf06e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
+17
-5
properties.js
src/utils/properties.js
+3
-2
Editor.vue
src/views/Editor.vue
+6
-1
Board.vue
src/views/Editor/behavior-editor/Board.vue
+5
-2
MetaEditorDialog.vue
src/views/Editor/behavior-editor/MetaEditorDialog.vue
+3
-0
No files found.
src/utils/properties.js
View file @
c4b1baed
...
...
@@ -141,10 +141,11 @@ export default {
},
size
:
{
title
:
'字体大小'
,
type
:
'swSelect'
,
type
:
'inputNumber'
,
/*type: 'swSelect',
props: {
optionType: 'fontSize'
},
},
*/
value
:
12
},
textAlign
:
{
...
...
src/views/Editor.vue
View file @
c4b1baed
...
...
@@ -204,7 +204,12 @@
type
:
'success'
,
duration
:
1000
,
});
if
(
debug
){
setTimeout
(()
=>
{
window
.
open
(
packResult
.
tplUrl
,
'blank'
);
},
500
);
}
else
{
this
.
$refs
.
packResultDialog
.
show
(
packResult
);
}
/*this.$confirm(this.$t('Pack project successfully'), this.$t('Alert'), {
confirmButtonText: this.$t('Open in new tab'),
cancelButtonText: this.$t('Close'),
...
...
src/views/Editor/behavior-editor/Board.vue
View file @
c4b1baed
...
...
@@ -15,7 +15,7 @@
@
click=
"onClickProcessNode(process, key)"
@
hover-pin=
"onPinHover"
@
leave-pin=
"onPinLeave"
@
down-pin=
"onPin
t
Down"
@
down-pin=
"onPinDown"
@
delete=
"onProcessNodeDelete"
@
copy=
"onProcessNodeCopy"
@
edit-meta=
"onEditMeta"
...
...
@@ -200,6 +200,9 @@
avatar
.
uuid
=
generateUUID
();
avatar
.
design
.
x
+=
20
;
avatar
.
design
.
y
+=
20
;
avatar
.
output
=
{};
delete
avatar
.
design
[
'output'
];
delete
avatar
.
design
[
'input'
];
this
.
$set
(
this
.
process
.
meta
.
sub
,
avatar
.
uuid
,
avatar
);
this
.
addSubProcess
(
avatar
.
uuid
,
avatar
);
...
...
@@ -254,7 +257,7 @@
onPinLeave
(
x
,
y
,
pin
)
{
this
.
$refs
.
toolTip
.
hide
();
},
onPin
t
Down
(
e
,
process
,
pin
)
{
onPinDown
(
e
,
process
,
pin
)
{
document
.
addEventListener
(
"mousemove"
,
this
.
onMouseMove
);
document
.
addEventListener
(
"mouseup"
,
this
.
onMouseUp
);
...
...
src/views/Editor/behavior-editor/MetaEditorDialog.vue
View file @
c4b1baed
...
...
@@ -72,6 +72,7 @@
import
'codemirror/mode/javascript/javascript.js'
import
'codemirror/lib/codemirror.css'
import
'codemirror/theme/monokai.css'
import
'codemirror/addon/edit/closebrackets.js'
const
exposeVariables
=
[
'args'
,
'props'
,
'target'
,
'global'
,
'vm'
,
'engine'
];
...
...
@@ -101,6 +102,8 @@
theme
:
'default'
,
lineNumbers
:
true
,
line
:
true
,
matchBrackets
:
true
,
autoCloseBrackets
:
true
,
// more codemirror options, 更多 codemirror 的高级配置...
}
}
...
...
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