<el-table
style="width: 100%"
:cell-style="{backgroundColor: '#355E92',}"
:header-cell-style="{backgroundColor: '#355E92',color: '#fff',}">
el-table 中有回调header-cell-style(表头)和cell-style(表内容)
以对象的形式返回即可生效
如果表尾还添加了show-summary"合计"行 则可以在element-ui文件中添加下列样式
.el-table .el-table__footer-wrapper .cell {
text-align: center
}