1、如何在表达式中写三元表达式
<el-table-column label="是否选中">
<template slot-scope="scope">
<span>{{scope.row.id== 1 ? '是' :'否'}}</span>
</template>
</el-table-column>
2、如何自定义索引 index:当前行号 从0开始
<el-table-column
type="index"
:index="indexMethod"
lable="序号">
</el-table-column>
indexMethod(index){
return index + 1
}
3、如何更改表头样式
<el-table
:header-cell-style="{background:'#2EC7C9',color: '#fff'}">
</el-table>