el-table表头左右合并

问题:

https://github.com/ElemeFE/element/issues/20253

解决思路:

https://www.cnblogs.com/yscec/p/11880786.html

具体实现:

使用<el-table>中的 header-cell-style 属性
handleHeader({row,column,rowIndex,columnIndex}){
if ( row === 1){

// 合并第一列和第二列表头
    return { display : 'none'}
  }
}

posted @ 2020-09-30 08:34  两道风  阅读(2051)  评论(0)    收藏  举报