<el-table
:cell-style="changeCellStyle">
.........
</el-table>
changeCellStyle (row, column, rowIndex, columnIndex) {
if(row.column.label === "列标题"){
return 'color: blue' // 修改的样式
}else{
return ''
}
}
<el-table
:cell-style="changeCellStyle">
.........
</el-table>
changeCellStyle (row, column, rowIndex, columnIndex) {
if(row.column.label === "列标题"){
return 'color: blue' // 修改的样式
}else{
return ''
}
}