undefinedfix
Sign in

Vue + element table

AstralProgrammer edited in Thu, 01 Dec 2022

Even if there is a great God, this is the layout of Vue + element~~~~

1 Replies
amrobx
commented on Thu, 01 Dec 2022

In the El table tag, add: span method = "objectspanmethod" method, add objectspanmethod ({row, column, rowindex, columnindex}) {if (columnindex = = = 0){

if (rowIndex % 2 === 0) { 
    return { rowspan: 2, colspan: 1 }; } 
else { 
    return { rowspan: 0, colspan: 0 }; } 
    }}