【修改bug】高度自适应
This commit is contained in:
@@ -55,6 +55,14 @@
|
|||||||
ref="tree"
|
ref="tree"
|
||||||
@check="getHalfCheckedNode"
|
@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-tree>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="19 ">
|
<el-col :span="19 ">
|
||||||
@@ -937,9 +945,20 @@ export default {
|
|||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
.filter-tree{
|
.filter-tree{
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
height: calc(100vh - 320px);
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.tree{
|
||||||
|
height: 500px;
|
||||||
|
overflow: auto;
|
||||||
|
.filter-tree{
|
||||||
|
margin-top: 20px;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.check-all {
|
.check-all {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
width: 95%;
|
width: 95%;
|
||||||
|
|||||||
Reference in New Issue
Block a user