el-table表头文字换行或者修改字体颜色样式

例如

复制代码
 <el-table
      :data="tableData"
      :header-cell-style="headClass" 
      style="width: 100%;" border >
      <el-table-column
        prop="address"
        label="生产工序"
         align="center">
      </el-table-column>
//重点看这里
       <el-table-column
         align="center">
          <template slot="header" slot-scope="slot">
          <div>方数㎡</div>
          <div class="greyColor">工件展开面积</div>
        </template>
        <template slot-scope="scope">
          <span>{{ scope.row.toolName }}</span>
        </template>
      </el-table-column>

       <el-table-column
        prop="address"
        label="子单数"
         align="center">
      </el-table-column>
       <el-table-column
        prop="address"
        label="工件数"
         align="center">
      </el-table-column>
 </el-table>
相关推荐
还有多远.39 分钟前
jsBridge接入流程
前端·javascript·vue.js·react.js
w2sfot1 小时前
Passing Arguments as an Object in JavaScript
开发语言·javascript·ecmascript
烛阴1 小时前
【TS 设计模式完全指南】从零到一:掌握TypeScript建造者模式,让你的对象构建链式优雅
javascript·设计模式·typescript
前端Hardy2 小时前
HTML&CSS:有趣的漂流瓶
前端·javascript·css
前端Hardy2 小时前
HTML&CSS :惊艳 UI 必备!卡片堆叠动画
前端·javascript·css
无羡仙2 小时前
替代 Object.freeze 的精准只读模式
前端·javascript
半花2 小时前
【Vue】defineProps、defineEmits 和 defineExpose
前端·vue.js
我的名字帅不帅2 小时前
使用 Element UI -Container 布局容器时监听屏幕滚动无效
vue.js
用户28003832908402 小时前
升级Vue3.4+版本,ant-design-vue 3.x 版本的Modal函数方式无法关闭问题
vue.js
小菜全3 小时前
uniapp新增页面及跳转配置方法
开发语言·前端·javascript·vue.js·前端框架