<el-table
:data="tableData"
border
:header-cell-style="tableHeaderColor"
style="width: 100%">
</el-table>
/*更改表头样式*/
tableHeaderColor({ rowIndex}) {
if (rowIndex === 0) {
return 'background-color: lightblue;color: #fff;font-weight: 500;'
}
},