|
|
|
@ -25,6 +25,7 @@
|
|
|
|
|
default-expand-all
|
|
|
|
|
highlight-current
|
|
|
|
|
@node-click="handleNodeClick"
|
|
|
|
|
class="tree-style"
|
|
|
|
|
>
|
|
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
|
|
<span style="width:220px; display:block; word-break:keep-all; white-space:nowrap; overflow:hidden; text-overflow:ellipsis"
|
|
|
|
@ -346,4 +347,8 @@ export default {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
font: bolder;
|
|
|
|
|
}
|
|
|
|
|
.tree-style {
|
|
|
|
|
height: 500px; /* 设置一个固定高度 */
|
|
|
|
|
overflow-y: auto; /* 滚动条只在垂直方向显示 */
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|