<el-table :data="ycList" border class="tableBox">
<el-table-column prop="zb" label="异常指标" width="197" />
<el-table-column prop="n" label="一个月内" width="119" />
<el-table-column prop="s" label="一个月以上" width="119" />
<el-table-column prop="h" label="合计" width="119" />
</el-table>
/deep/.tableBox {
th {
padding: 0 !important;
height: 10px;
line-height: 10px;
}
td {
padding: 0 !important;
height: 30px;
line-height: 30px;
}
}
element el-table 设置行高
最新推荐文章于 2024-07-15 15:15:49 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)