dffe86e1 by 杨威

目录树修改

1 parent 3a578c1e
<template>
<div class="tree_item_box" :class="list.length>10 ? 'ofy_scroll':''" :style="{maxHeight:(list.length > 10 ? treeXzqHeight:'unset')+'px'}">
<div class="tree_item_box" >
<div
class="column-start-start linkLine_default"
v-for="(item, s_index) in list"
......@@ -97,9 +97,7 @@ export default {
}
},
mounted(){
this.$nextTick(()=>{
this.treeXzqHeight = this.$parent.$el.clientHeight-(this.formatData.length-1)*26+60;
})
},
methods: {
itemClick(item) {
......@@ -231,10 +229,10 @@ export default {
width: 100%;
cursor: pointer;
}
.ofy_scroll{
overflow-y: scroll;
overflow-x: hidden;
}
// .ofy_scroll{
// overflow-y: scroll;
// overflow-x: hidden;
// }
.basic_layer {
width: 100%;
position: relative;
......
......@@ -326,6 +326,8 @@ export default {
.content {
height: 100%;
width: 100%;
overflow-y: scroll;
overflow-x: hidden;
}
.column-start-center {
display: flex;
......