UNPKG

egg-jianghu

Version:
21 lines (20 loc) 550 B
<!--resetTableMaxHeight.html start--> <script> resetTableMaxHeight = () => { const tables = document.getElementsByClassName('v-data-table__wrapper'); if (_.isEmpty(tables)) { window.requestAnimationFrame(() => { resetTableMaxHeight(); }) } else { for (const table of tables) { table.style.maxHeight = window.innerHeight - table.offsetTop - 115 + 'px'; } } } window.onresize = () => { resetTableMaxHeight(); } resetTableMaxHeight(); </script> <!--resetTableMaxHeight.html end-->