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