<el-table :data="rows" highlight-current-row v-loading="listLoading"
@row-click="details" style="width: 100%;" :max-height="tableMaxHeight">
在table标签加上:max-height=“tableMaxHeight”
然后计算:max-height="tableMaxHeight"的高度
computed: {
tableMaxHeight() {
return window.innerHeight-220+'px';
}
},
监控tableMaxHeight的值