改变el-table 表头

 
 
在el-table 加入   

:header-cell-style="{background:'#00a65b',color:'#fff'}

eg:

  <el-table v-loading="options.loading" :data="list" :max-height="options.maxHeight" :stripe="options.stripe" ref="mutipleTable"
            @selection-change="handleSelectionChange" header-cell-class-name="table-header" :border="options.border"
            :header-cell-style="{background:'#00a65b',color:'#fff'}"
            >

猜你喜欢

转载自www.cnblogs.com/lovekunkun/p/11685955.html