在el-table中设置
:cell-style="rowClass" :header-cell-style="headClass"
在methods中进行如下设置:
// 表头样式设置
headClass () {
return 'text-align: center;background:#eef1f6;'
},
// 表格样式设置
rowClass () {
return 'text-align: center;'
}
在el-table中设置
:cell-style="rowClass" :header-cell-style="headClass"
在methods中进行如下设置:
// 表头样式设置
headClass () {
return 'text-align: center;background:#eef1f6;'
},
// 表格样式设置
rowClass () {
return 'text-align: center;'
}
转载于:https://www.cnblogs.com/lljun/p/11551128.html