优化代码

This commit is contained in:
Your Name 2023-02-25 12:00:19 +08:00
parent dda3af7dbf
commit 1ecfbfcd7b

View File

@ -155,8 +155,8 @@
},
_computeTableDivWidth:function(){
let mainWidth = document.getElementsByTagName('body')[0].clientWidth - document.getElementById('menu-nav').offsetWidth;
let treeWidth = document.getElementsByClassName('room-floor-unit-tree')[0].offsetWidth;
mainWidth = mainWidth - 20 - treeWidth -15 - 20;
//let treeWidth = document.getElementsByClassName('room-floor-unit-tree')[0].offsetWidth;
mainWidth = mainWidth - 20 -15 - 20;
//document.getElementsByClassName('hc-table-div')[0].style.width=mainWidth+'px';
return mainWidth+'px';
},