perf: modulebox-walk-tree提示信息交互优化
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user