一、table表格行样式
- cell-style 样式设置
- 在
<el-table>
中设置:cell-style="cellStyle"
cellStyle为样式回调方法
<el-table :data="tableData" border class="table"
:cell-style="cellStyle" style="font-size:10px">
- 编写cellStyle回调方法:
// 设置表格样式
cellStyle({row, column, rowIndex, columnIndex}){
return "padding:0" #样式
},
结果如下:

网友评论