<div class="table" :style="{height:scrollerHeight}"></div>
// 初始高度
const _screenHeight = document.body.clientHeight;
const _contentHeight = document.getElementsByClassName("header")[0].clientHeight;
this.scrollerHeight = (_screenHeight - _contentHeight - 230) + 'px'
// 监听页面窗口缩放时设置高度
window.addEventListener('resize', () => {
const screenHeight = document.body.clientHeight;
const contentHeight = document.getElementsByClassName("header")[0].clientHeight;
this.scrollerHeight = (screenHeight - contentHeight - 230) + 'px'
})