|
@@ -6,8 +6,8 @@
|
|
<div class="flow-modal-data__container">
|
|
<div class="flow-modal-data__container">
|
|
<div
|
|
<div
|
|
class="flow-modal-data__item"
|
|
class="flow-modal-data__item"
|
|
- v-for="(n,k) of nodeSelection"
|
|
|
|
- :key="'data'+k"
|
|
|
|
|
|
+ v-for="n of nodes"
|
|
|
|
+ :key="'data'+n.id"
|
|
>
|
|
>
|
|
Node: [{{ n.id }}] - {{ n.label }}
|
|
Node: [{{ n.id }}] - {{ n.label }}
|
|
<img
|
|
<img
|
|
@@ -26,6 +26,16 @@ export default {
|
|
nodeActivity () {
|
|
nodeActivity () {
|
|
return this.activity && this.activity.nodes && this.activity.nodes[this.nodeInspect.id]
|
|
return this.activity && this.activity.nodes && this.activity.nodes[this.nodeInspect.id]
|
|
},
|
|
},
|
|
|
|
+ nodes () {
|
|
|
|
+ const nodes = []
|
|
|
|
+
|
|
|
|
+ // Extract to array
|
|
|
|
+ for (let k in this.nodeSelection) {
|
|
|
|
+ nodes.push(this.nodeSelection[k])
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return nodes.sort((a, b) => a.y - b.y)
|
|
|
|
+ },
|
|
nodeInspect () {
|
|
nodeInspect () {
|
|
return this.$store.state.flow.nodeInspect
|
|
return this.$store.state.flow.nodeInspect
|
|
},
|
|
},
|
|
@@ -55,6 +65,12 @@ export default {
|
|
.flow-modal-data__item {
|
|
.flow-modal-data__item {
|
|
display:flex;
|
|
display:flex;
|
|
flex-flow:column;
|
|
flex-flow:column;
|
|
|
|
+ flex-basis:25%;
|
|
padding:10px;
|
|
padding:10px;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.flow-modal-data__item img {
|
|
|
|
+ width:100%;
|
|
|
|
+ height:auto;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|