perf: modulebox-walk-tree提示信息交互优化

This commit is contained in:
陈劲松
2020-04-08 18:57:14 +08:00
parent e924c22f6f
commit dd1d97a0ee

View File

@@ -18,6 +18,7 @@
check-strictly check-strictly
show-checkbox show-checkbox
@check="change" @check="change"
@node-click="hideDetail"
:default-checked-keys="currentWalk" :default-checked-keys="currentWalk"
> >
<div slot-scope="{node, data}" class="walk-tree-item" :class="getClass(data.objectID)"> <div slot-scope="{node, data}" class="walk-tree-item" :class="getClass(data.objectID)">
@@ -93,11 +94,13 @@
}, },
change(data, tree) { change(data, tree) {
this.$emit("selectWalk", data.objectID); this.$emit("selectWalk", data.objectID);
this.tempWalk.detailShow = false
}, },
show() { show() {
this.popBox.show = true; this.popBox.show = true;
}, },
hideDetail() {
this.tempWalk.detailShow = false;
},
showDetail(data, e) { showDetail(data, e) {
if (this.tempWalk.objectID != data.objectID) { if (this.tempWalk.objectID != data.objectID) {
this.tempWalk.detailShow = false; this.tempWalk.detailShow = false;