可借鉴:
链接:vue使用Element表格之多级表头与表格合并(详细教程)_前端小脑虎的博客-CSDN博客_vue多级表头
2.结构 (第一个是单独的el-table-column,第二个是一个el-table-column里包着一个el-table-column,第三个是一个el-table-column包着是三个el-table-column,其他的以此类推)
代码:
<template>
<div class="TableShows">
<el-table :data="tableData" style="width: 100%" :span-method="arraySpanMethod" :cell-style="rowStyle">
<!-- 日期 -->
<el-table-column prop="date" label="日期" width="110"