+
+
+
+
+
+
+
+
+
+
+
+
@@ -124,6 +135,12 @@
+
+
+
+
+
+
@@ -237,18 +254,27 @@ export default {
newName: e.target.value,
node: this.model
})
+ this.editable = false
},
delNode() {
this.rootNode.$emit('delete-node', this.model)
},
+ clickNode() {
+ this.rootNode.$emit('click-node', this.model)
+ },
+
+ copyNode() {
+ this.rootNode.$emit('copy-node', this.model)
+ },
+
setEditable() {
this.editable = true
this.$nextTick(() => {
const $input = this.$refs.nodeInput
$input.focus()
- $input.setSelectionRange(0, $input.value.length)
+ // $input.setSelectionRange(0, $input.value.length)
})
},
@@ -466,10 +492,16 @@ export default {
.vtl-input {
border: none;
max-width: 150px;
- border-bottom: 1px solid blue;
+ border-bottom: 1px solid #1890ff;
+ }
+ .vtl-operation {
+ display: none;
}
&:hover {
background-color: #f0f0f0;
+ .vtl-operation {
+ display: block;
+ }
}
&.vtl-active {
outline: 2px dashed pink;