vue+element给el-table头部换背景颜色
直接上代码:
:header-cell-style(头部样式)
:header-cell-style="{background:'#eef1f6',color:'#606266'}"
<el-table ref="commonTable" :data="dataSource" :max-height="tableHeight" @selection-change="handleSelectionChange"
v-bind="tableProps" @sort-change="handleSortChange" :header-cell-style="{background:'#EFF0F3',color:'#A2AAB4'}">
</el-table>
本文来自博客园,作者:danmo_xx,转载请注明原文链接:https://www.cnblogs.com/xx321/p/14822197.html