目录树修改
Showing
2 changed files
with
8 additions
and
8 deletions
1 | <template> | 1 | <template> |
2 | <div class="tree_item_box" :class="list.length>10 ? 'ofy_scroll':''" :style="{maxHeight:(list.length > 10 ? treeXzqHeight:'unset')+'px'}"> | 2 | <div class="tree_item_box" > |
3 | <div | 3 | <div |
4 | class="column-start-start linkLine_default" | 4 | class="column-start-start linkLine_default" |
5 | v-for="(item, s_index) in list" | 5 | v-for="(item, s_index) in list" |
... | @@ -97,9 +97,7 @@ export default { | ... | @@ -97,9 +97,7 @@ export default { |
97 | } | 97 | } |
98 | }, | 98 | }, |
99 | mounted(){ | 99 | mounted(){ |
100 | this.$nextTick(()=>{ | 100 | |
101 | this.treeXzqHeight = this.$parent.$el.clientHeight-(this.formatData.length-1)*26+60; | ||
102 | }) | ||
103 | }, | 101 | }, |
104 | methods: { | 102 | methods: { |
105 | itemClick(item) { | 103 | itemClick(item) { |
... | @@ -231,10 +229,10 @@ export default { | ... | @@ -231,10 +229,10 @@ export default { |
231 | width: 100%; | 229 | width: 100%; |
232 | cursor: pointer; | 230 | cursor: pointer; |
233 | } | 231 | } |
234 | .ofy_scroll{ | 232 | // .ofy_scroll{ |
235 | overflow-y: scroll; | 233 | // overflow-y: scroll; |
236 | overflow-x: hidden; | 234 | // overflow-x: hidden; |
237 | } | 235 | // } |
238 | .basic_layer { | 236 | .basic_layer { |
239 | width: 100%; | 237 | width: 100%; |
240 | position: relative; | 238 | position: relative; | ... | ... |
... | @@ -326,6 +326,8 @@ export default { | ... | @@ -326,6 +326,8 @@ export default { |
326 | .content { | 326 | .content { |
327 | height: 100%; | 327 | height: 100%; |
328 | width: 100%; | 328 | width: 100%; |
329 | overflow-y: scroll; | ||
330 | overflow-x: hidden; | ||
329 | } | 331 | } |
330 | .column-start-center { | 332 | .column-start-center { |
331 | display: flex; | 333 | display: flex; | ... | ... |
-
Please register or sign in to post a comment