<el-table
:cell-style="cellStyle"
>
methods:{
cellStyle (row, column, rowIndex, columnIndex) {
if(row.column.label === "标题"){
return 'font-weight:bold'
}else{
return ''
}
}
}
<el-table
:cell-style="cellStyle"
>
methods:{
cellStyle (row, column, rowIndex, columnIndex) {
if(row.column.label === "标题"){
return 'font-weight:bold'
}else{
return ''
}
}
}
转载于:https://www.cnblogs.com/janney/p/9712308.html