This commit is contained in:
zhutianqi
2021-12-02 13:40:37 +08:00
parent 19a9b71179
commit acbb06db12
4 changed files with 4 additions and 11 deletions
@@ -10,8 +10,6 @@
</el-input>
<div class="tree">
<el-card style="height: 100%;padding-right: 120px;overflow-y:auto">
<el-tree
ref="tree"
node-key="id"
@@ -23,8 +21,7 @@
default-expanded-keys="['22179d54d4e640098e30']"
highlight-current
@node-click="treeClick"
:filter-node-method="filterNode"
:expand-on-click-node="false">
:filter-node-method="filterNode">
<span class="custom-tree-node" slot-scope="{ node, data }" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
<span :class="data.children.length !== 0 ? 'is-show' : 'is-leaf-none'"></span>
<span style="font-size:12px"> {{ node.label }} </span>