vue项目,el-table给某一列添加样式
<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 ''
}
}
更多推荐
已为社区贡献4条内容
所有评论(0)