设置max-height就好了
<el-table
border
show-summary
:max-height="clientHeight"
class="report_table"
:data="breakfastData">
<el-table-column
label="日期"
width="180">
<template slot-scope="scope">
<div>{{ scope.row.validateTime | dateFormat }}</div>
</template>
</el-table-column>
</el-table>
data(){
return{
clientHeight:document.body.clientHeight - 100
}
}
效果: