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>

posted @ 2021-05-28 15:00  danmo_xx  阅读(1115)  评论(1编辑  收藏  举报