<el-table :header-cell-style="tableHeaderColor"></el-table> tableHeaderColor({ row, column, rowIndex, columnIndex }){ if (columnIndex === 3) { return "background-color: #eeeeee"; } }
<el-table :header-cell-style="tableHeaderColor"></el-table>