BUG 29508
This commit is contained in:
@@ -22,8 +22,11 @@
|
|||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
default-expand-all
|
default-expand-all
|
||||||
highlight-current>
|
highlight-current>
|
||||||
|
<template slot-scope="{ node, data }">
|
||||||
<span class="custom-tree-node" :title="node.label" style="" slot-scope="{ node, data }">{{ node.label }}</span>
|
<el-tooltip effect="light" :content="node.label" placement="right">
|
||||||
|
<div v-text="node.label"/>
|
||||||
|
</el-tooltip>
|
||||||
|
</template>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -102,7 +105,7 @@
|
|||||||
getTreeList() {
|
getTreeList() {
|
||||||
return this.instance.post(`/app/appgirdinfo/listAllByTop`).then((res) => {
|
return this.instance.post(`/app/appgirdinfo/listAllByTop`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.treeObj.treeList = res.data;
|
this.treeObj.treeList = [res.data];
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
res.data.length && this.$refs.tree.setCurrentKey(res.data[0].id)
|
res.data.length && this.$refs.tree.setCurrentKey(res.data[0].id)
|
||||||
@@ -374,7 +377,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .is-current {
|
::v-deep .is-current {
|
||||||
& > .el-tree-node__content > .custom-tree-node {
|
& > .el-tree-node__content > .el-tooltip {
|
||||||
color: #5088ff;
|
color: #5088ff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -576,7 +579,7 @@
|
|||||||
background: #333c53;
|
background: #333c53;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-tree-node__label {
|
.el-tooltip {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -585,7 +588,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.is-current > .el-tree-node__content {
|
.is-current > .el-tree-node__content {
|
||||||
.el-tree-node__label {
|
.el-tooltip {
|
||||||
color: #5088ff;
|
color: #5088ff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user