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
2bbf6a42
Commit
2bbf6a42
authored
Nov 14, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复修改meta刷新问题
parent
07ecf566
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
Board.vue
src/views/Editor/behavior-editor/Board.vue
+1
-1
MetaEditorDialog.vue
src/views/Editor/behavior-editor/MetaEditorDialog.vue
+5
-1
ProjectDetailsDialog.vue
src/views/Editor/dialogs/ProjectDetailsDialog.vue
+7
-2
No files found.
src/views/Editor/behavior-editor/Board.vue
View file @
2bbf6a42
...
@@ -285,7 +285,7 @@
...
@@ -285,7 +285,7 @@
if
(
key
.
startsWith
(
'pn_'
))
{
if
(
key
.
startsWith
(
'pn_'
))
{
const
processNode
=
this
.
$refs
[
key
][
0
];
const
processNode
=
this
.
$refs
[
key
][
0
];
if
(
processNode
.
meta
.
id
===
metaID
)
{
if
(
processNode
&&
processNode
.
meta
.
id
===
metaID
)
{
this
.
onProcessMetaModified
(
processNode
.
data
,
processNode
.
meta
);
this
.
onProcessMetaModified
(
processNode
.
data
,
processNode
.
meta
);
processNode
.
updateSize
();
processNode
.
updateSize
();
processNode
.
updateDockPointPos
();
processNode
.
updateDockPointPos
();
...
...
src/views/Editor/behavior-editor/MetaEditorDialog.vue
View file @
2bbf6a42
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
class=
"button-bar"
>
<div
class=
"button-bar"
>
<el-button
size=
"mini"
plain
@
click=
"printMeta"
>
PrintMeta
</el-button>
<el-button
size=
"mini"
plain
@
click=
"cancel"
>
Cancel
</el-button>
<el-button
size=
"mini"
plain
@
click=
"cancel"
>
Cancel
</el-button>
<el-button
size=
"mini"
plain
@
click=
"save"
>
Save
</el-button>
<el-button
size=
"mini"
plain
@
click=
"save"
>
Save
</el-button>
</div>
</div>
...
@@ -101,7 +102,10 @@
...
@@ -101,7 +102,10 @@
},
},
cancel
()
{
cancel
()
{
this
.
visible
=
false
;
this
.
visible
=
false
;
}
},
printMeta
()
{
console
.
log
(
JSON
.
stringify
(
this
.
meta
));
},
}
}
}
}
</
script
>
</
script
>
...
...
src/views/Editor/dialogs/ProjectDetailsDialog.vue
View file @
2bbf6a42
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
:show-close=
"false"
:show-close=
"false"
>
>
<div
class=
"project-details-dialog"
>
<div
class=
"project-details-dialog"
>
<el-form
@
submit
.
native
.
prevent
ref=
"form"
:model=
"options"
size=
"mini"
label-position=
"right"
label-width=
"150px"
>
<el-form
@
submit
.
native
.
prevent
ref=
"form"
:model=
"options"
size=
"mini"
label-position=
"right"
label-width=
"150px"
>
<el-form-item
prop=
"pageTitle"
:label=
"$t('Page title')"
>
<el-form-item
prop=
"pageTitle"
:label=
"$t('Page title')"
>
<el-input
v-model=
"options.pageTitle"
/>
<el-input
v-model=
"options.pageTitle"
/>
</el-form-item>
</el-form-item>
...
@@ -61,7 +62,7 @@
...
@@ -61,7 +62,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapState
,
mapGetters
}
from
'vuex'
;
import
{
mapState
,
mapGetters
,
mapMutations
}
from
'vuex'
;
import
{
RENDERER_TYPES
,
SCALE_MODES
}
from
"../../../utils"
;
import
{
RENDERER_TYPES
,
SCALE_MODES
}
from
"../../../utils"
;
export
default
{
export
default
{
...
@@ -91,10 +92,14 @@
...
@@ -91,10 +92,14 @@
},
},
onConfirm
()
{
onConfirm
()
{
this
.
visible
=
false
;
this
.
visible
=
false
;
this
.
modifyProject
();
},
},
onOpen
()
{
onOpen
()
{
},
},
...
mapMutations
([
'modifyProject'
,
]),
}
}
}
}
</
script
>
</
script
>
...
...
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