<div ref="tableBox" class="contentShow" style="height:100%">
<Table
class="data-c"
:columns="leftDataColumns"
:data="leftData"
:height="tableHeight"
></Table>
</div>
mounted() {
// 计算table的高度
this.$nextTick(() => {
let tableHeight = this.$refs.tableBox.clientHeight
this.tableHeight = tableHeight
})
},