【修改bug】高度自适应

This commit is contained in:
zhoulingpo
2023-04-27 10:05:08 +08:00
parent c6a5368751
commit 25e1df5b61
+19
View File
@@ -55,6 +55,14 @@
ref="tree"
@check="getHalfCheckedNode"
>
<template slot-scope="{node}">
<span v-if="node.label.length <= 10">{{ node.label }}</span>
<el-tooltip v-else :content="node.label" placement="top">
<div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
{{ node.label }}
</div>
</el-tooltip>
</template>
</el-tree>
</el-col>
<el-col :span="19 ">
@@ -937,9 +945,20 @@ export default {
margin-right: 20px;
.filter-tree{
margin-top: 20px;
height: calc(100vh - 320px);
overflow: auto;
}
}
.tree{
height: 500px;
overflow: auto;
.filter-tree{
margin-top: 20px;
}
}
.check-all {
text-align: right;
width: 95%;