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
Hide 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 {
...
@@ -141,10 +141,11 @@ export default {
},
},
size
:
{
size
:
{
title
:
'字体大小'
,
title
:
'字体大小'
,
type
:
'swSelect'
,
type
:
'inputNumber'
,
/*type: 'swSelect',
props: {
props: {
optionType: 'fontSize'
optionType: 'fontSize'
},
},
*/
value
:
12
value
:
12
},
},
textAlign
:
{
textAlign
:
{
...
...
src/views/Editor.vue
View file @
c4b1baed
...
@@ -204,7 +204,12 @@
...
@@ -204,7 +204,12 @@
type
:
'success'
,
type
:
'success'
,
duration
:
1000
,
duration
:
1000
,
});
});
this
.
$refs
.
packResultDialog
.
show
(
packResult
);
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'), {
/*this.$confirm(this.$t('Pack project successfully'), this.$t('Alert'), {
confirmButtonText: this.$t('Open in new tab'),
confirmButtonText: this.$t('Open in new tab'),
cancelButtonText: this.$t('Close'),
cancelButtonText: this.$t('Close'),
...
...
src/views/Editor/behavior-editor/Board.vue
View file @
c4b1baed
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
@
click=
"onClickProcessNode(process, key)"
@
click=
"onClickProcessNode(process, key)"
@
hover-pin=
"onPinHover"
@
hover-pin=
"onPinHover"
@
leave-pin=
"onPinLeave"
@
leave-pin=
"onPinLeave"
@
down-pin=
"onPin
t
Down"
@
down-pin=
"onPinDown"
@
delete=
"onProcessNodeDelete"
@
delete=
"onProcessNodeDelete"
@
copy=
"onProcessNodeCopy"
@
copy=
"onProcessNodeCopy"
@
edit-meta=
"onEditMeta"
@
edit-meta=
"onEditMeta"
...
@@ -200,6 +200,9 @@
...
@@ -200,6 +200,9 @@
avatar
.
uuid
=
generateUUID
();
avatar
.
uuid
=
generateUUID
();
avatar
.
design
.
x
+=
20
;
avatar
.
design
.
x
+=
20
;
avatar
.
design
.
y
+=
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
.
$set
(
this
.
process
.
meta
.
sub
,
avatar
.
uuid
,
avatar
);
this
.
addSubProcess
(
avatar
.
uuid
,
avatar
);
this
.
addSubProcess
(
avatar
.
uuid
,
avatar
);
...
@@ -254,7 +257,7 @@
...
@@ -254,7 +257,7 @@
onPinLeave
(
x
,
y
,
pin
)
{
onPinLeave
(
x
,
y
,
pin
)
{
this
.
$refs
.
toolTip
.
hide
();
this
.
$refs
.
toolTip
.
hide
();
},
},
onPin
t
Down
(
e
,
process
,
pin
)
{
onPinDown
(
e
,
process
,
pin
)
{
document
.
addEventListener
(
"mousemove"
,
this
.
onMouseMove
);
document
.
addEventListener
(
"mousemove"
,
this
.
onMouseMove
);
document
.
addEventListener
(
"mouseup"
,
this
.
onMouseUp
);
document
.
addEventListener
(
"mouseup"
,
this
.
onMouseUp
);
...
...
src/views/Editor/behavior-editor/MetaEditorDialog.vue
View file @
c4b1baed
...
@@ -72,6 +72,7 @@
...
@@ -72,6 +72,7 @@
import
'codemirror/mode/javascript/javascript.js'
import
'codemirror/mode/javascript/javascript.js'
import
'codemirror/lib/codemirror.css'
import
'codemirror/lib/codemirror.css'
import
'codemirror/theme/monokai.css'
import
'codemirror/theme/monokai.css'
import
'codemirror/addon/edit/closebrackets.js'
const
exposeVariables
=
[
'args'
,
'props'
,
'target'
,
'global'
,
'vm'
,
'engine'
];
const
exposeVariables
=
[
'args'
,
'props'
,
'target'
,
'global'
,
'vm'
,
'engine'
];
...
@@ -101,6 +102,8 @@
...
@@ -101,6 +102,8 @@
theme
:
'default'
,
theme
:
'default'
,
lineNumbers
:
true
,
lineNumbers
:
true
,
line
:
true
,
line
:
true
,
matchBrackets
:
true
,
autoCloseBrackets
:
true
,
// more codemirror options, 更多 codemirror 的高级配置...
// 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