element-ui合並行:span-method


 1 objectSpanMethod({ row, column, rowIndex, columnIndex }) {
 2       if (columnIndex === 0) {
 3         if (rowIndex % 2 === 0) {
 4           return {
 5             rowspan: 2,
 6             colspan: 1
 7           };
 8         } else {
 9           return {
10             rowspan: 0,
11             colspan: 0
12           };
13         }
14       }
15     }
1 <el-table :data="tableData" :span-method="objectSpanMethod" border>

element-ui合並行或列的計算方法

element-ui table :span-method(行合並)


免責聲明!

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



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