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'}
  }
}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM