Date: Fri, 24 Jun 2022 19:11:39 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/VueTreeList.vue | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/VueTreeList.vue b/src/VueTreeList.vue
index e30d505..88e9bee 100644
--- a/src/VueTreeList.vue
+++ b/src/VueTreeList.vue
@@ -54,6 +54,7 @@
ref="nodeInput"
:value="model.name"
@change="updateName"
+ @blur="setUnEditable"
/>
@@ -258,11 +259,11 @@ export default {
setEditable() {
this.editable = true
- // this.$nextTick(() => {
- // const $input = this.$refs.nodeInput
- // $input.focus()
- // $input.setSelectionRange(0, $input.value.length)
- // })
+ this.$nextTick(() => {
+ const $input = this.$refs.nodeInput
+ $input.focus()
+ // $input.setSelectionRange(0, $input.value.length)
+ })
},
setUnEditable(e) {
@@ -479,7 +480,7 @@ export default {
.vtl-input {
border: none;
max-width: 150px;
- border-bottom: 1px solid blue;
+ border-bottom: 1px solid #1890ff;
}
.vtl-operation {
display: none;
From 539abf910c0c70539f7282df52b8f00dc4fdeda7 Mon Sep 17 00:00:00 2001
From: gaojie
Date: Wed, 29 Jun 2022 14:45:38 +0800
Subject: [PATCH 6/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=8D=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/VueTreeList.vue | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/VueTreeList.vue b/src/VueTreeList.vue
index 88e9bee..0fcf0ce 100644
--- a/src/VueTreeList.vue
+++ b/src/VueTreeList.vue
@@ -81,6 +81,11 @@
+
+
+
+
+
@@ -133,6 +138,9 @@
+
+
+
@@ -257,6 +265,10 @@ export default {
this.rootNode.$emit('click-node', this.model)
},
+ copyNode() {
+ this.rootNode.$emit('copy-node', this.model)
+ },
+
setEditable() {
this.editable = true
this.$nextTick(() => {