|  | @@ -96,6 +96,10 @@ export default {
 | 
											
												
													
														|  |      defaultCheckSub:{
 |  |      defaultCheckSub:{
 | 
											
												
													
														|  |        type:Boolean,
 |  |        type:Boolean,
 | 
											
												
													
														|  |        default:true
 |  |        default:true
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    autoHeight:{
 | 
											
												
													
														|  | 
 |  | +      type:Boolean,
 | 
											
												
													
														|  | 
 |  | +      default:true,
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    watch: {
 |  |    watch: {
 | 
											
										
											
												
													
														|  | @@ -118,13 +122,16 @@ export default {
 | 
											
												
													
														|  |      ...mapGetters(["orgTree"]),
 |  |      ...mapGetters(["orgTree"]),
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    mounted() {
 |  |    mounted() {
 | 
											
												
													
														|  | -    this.getHeight();
 |  | 
 | 
											
												
													
														|  | 
 |  | +    if(autoHeight){
 | 
											
												
													
														|  | 
 |  | +      this.getHeight();
 | 
											
												
													
														|  | 
 |  | +    }    
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    methods: {
 |  |    methods: {
 | 
											
												
													
														|  |      getHeight(){
 |  |      getHeight(){
 | 
											
												
													
														|  |        let orgTree = document.querySelector('.org-tree');
 |  |        let orgTree = document.querySelector('.org-tree');
 | 
											
												
													
														|  |        const resizeObserver = new ResizeObserver(entries => {
 |  |        const resizeObserver = new ResizeObserver(entries => {
 | 
											
												
													
														|  |          for (let entry of entries) {
 |  |          for (let entry of entries) {
 | 
											
												
													
														|  | 
 |  | +          debugger
 | 
											
												
													
														|  |            orgTree.style.height = entry.contentRect.height + 'px';
 |  |            orgTree.style.height = entry.contentRect.height + 'px';
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |        });
 |  |        });
 |