html
<template>
<div class="box">
<div class="box_item1"> box1</div>
<div class="box_item2">
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="date" label="日期"> </el-table-column>
<el-table-column prop="name" label="姓名"> </el-table-column>
<el-table-column prop="address" label="地址"> </el-table-column>
</el-table>
</div>
<div class="box_item3">box3</div>
</div>
</template>
css
.box {
width: 100%;
display: flex;
flex-wrap:nowrap;
align-items: flex-start;
.box_item1,
.box_item3 {
flex: 1;
background: #000;
color: #ccc;
margin: 10px;
}
.box_item2 {
flex: 1;
// min-height: 0;
overflow: hidden; // 重点:在el-table的外层盒子设置
}
}