修改表头背景色,每一行为小手状态
1.:show-header="false"不展示表头
<el-table:data="tableData"stripestyle="width: 100%"@row-click="clickRow":cell-style="cellStyle":header-cell-style="tableHeaderColor">methods: {/* 加入小手状态 */cellStyle(data) {if (data) {return 'cursor:pointer;'}},/* 修改表头颜色 */tableHeaderColor({ rowIndex }) {if (rowIndex === 0) {return 'background-color: lightblue;color: #fff;font-weight: 500;'}}}