|
@@ -51,7 +51,7 @@
|
|
<div class="flow-panel__container">
|
|
<div class="flow-panel__container">
|
|
<div class="flow-panel__selector">
|
|
<div class="flow-panel__selector">
|
|
<button @click="panel='palette'">Funcs</button>
|
|
<button @click="panel='palette'">Funcs</button>
|
|
- <button @click="panel='inspector'">Inspector</button>
|
|
|
|
|
|
+ <button @click="panel='inspector';nodeInspect = nodeActive">Inspector</button>
|
|
</div>
|
|
</div>
|
|
<transition name="fade">
|
|
<transition name="fade">
|
|
<flow-funcs
|
|
<flow-funcs
|
|
@@ -59,15 +59,18 @@
|
|
:registry="registry"
|
|
:registry="registry"
|
|
@toggleResizeable="funcsResizeable=!funcsResizeable"
|
|
@toggleResizeable="funcsResizeable=!funcsResizeable"
|
|
@toggleStickySockets="managerStickySockets=!managerStickySockets"
|
|
@toggleStickySockets="managerStickySockets=!managerStickySockets"
|
|
- /></transition>
|
|
|
|
|
|
+ />
|
|
|
|
+ </transition>
|
|
<transition name="fade">
|
|
<transition name="fade">
|
|
<flow-inspector
|
|
<flow-inspector
|
|
|
|
+ ref="inspector"
|
|
v-show="panel=='inspector'"
|
|
v-show="panel=='inspector'"
|
|
:registry="registry"
|
|
:registry="registry"
|
|
:activity="activity"
|
|
:activity="activity"
|
|
:node-inspect="nodeInspect"
|
|
:node-inspect="nodeInspect"
|
|
@nodeProcess="nodeProcess($event)"
|
|
@nodeProcess="nodeProcess($event)"
|
|
- /></transition>
|
|
|
|
|
|
+ />
|
|
|
|
+ </transition>
|
|
</div>
|
|
</div>
|
|
<flow-manager
|
|
<flow-manager
|
|
ref="flowManager"
|
|
ref="flowManager"
|
|
@@ -75,6 +78,7 @@
|
|
:registry="registry"
|
|
:registry="registry"
|
|
@funcsPanelToggle="funcsActive=!funcsActive"
|
|
@funcsPanelToggle="funcsActive=!funcsActive"
|
|
@nodeInspect="nodeInspectStart(...arguments)"
|
|
@nodeInspect="nodeInspectStart(...arguments)"
|
|
|
|
+ @nodeDblClick="nodeInspectStart(...arguments,true)"
|
|
@documentSave="documentSave"
|
|
@documentSave="documentSave"
|
|
|
|
|
|
width="100%"
|
|
width="100%"
|
|
@@ -184,6 +188,7 @@ export default {
|
|
|
|
|
|
panel: 'palette',
|
|
panel: 'palette',
|
|
|
|
|
|
|
|
+ nodeActive: null,
|
|
nodeInspect: null,
|
|
nodeInspect: null,
|
|
|
|
|
|
funcsSize: '250px',
|
|
funcsSize: '250px',
|
|
@@ -249,15 +254,22 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- nodeInspectStart (node) { // node
|
|
|
|
|
|
+ nodeInspectStart (node, changePane) { // node
|
|
|
|
+ this.nodeActive = node
|
|
|
|
+ if (changePane) this.panel = 'inspector'
|
|
|
|
+ if (this.panel !== 'inspector') {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.nodeInspect = node
|
|
this.nodeInspect = node
|
|
- this.panel = 'inspector'
|
|
|
|
|
|
+
|
|
|
|
+ // if (!changePane) { return }
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
// panel input
|
|
// panel input
|
|
- if (!this.$refs.modalInput) { return }
|
|
|
|
- let targetInput = this.$refs.modalInput
|
|
|
|
- if (this.$refs.nodeInspectProp && this.$refs.nodeInspectProp.length > 0) {
|
|
|
|
- targetInput = this.$refs.nodeInspectProp[0]
|
|
|
|
|
|
+ if (!this.$refs.inspector) { return }
|
|
|
|
+ const insp = this.$refs.inspector
|
|
|
|
+ let targetInput = this.$refs.inspector.$refs.labelInput
|
|
|
|
+ if (insp.$refs.props && insp.$refs.props.length > 0) {
|
|
|
|
+ targetInput = insp.$refs.props[0]
|
|
}
|
|
}
|
|
|
|
|
|
targetInput.setSelectionRange(0, targetInput.value.length)
|
|
targetInput.setSelectionRange(0, targetInput.value.length)
|