ElementUI中的表格合并
-通过表格中的 * objectSpanMethod *方法
// 合并行列
// 打印row判断在哪一行哪一列需要合并
//this.pjxList1.length通过数据长度判断合并的行数
objectSpanMethod({row,colum,rowIndex,columnIndex}){
// console.log(row,colum,rowIndex,columnIndex)
console.log(row)
if(rowIndex==0&&columnIndex==4){
console.log(this.pjxList1.length)
return {
rowspan:this.pjxList1.length,
colspan:1
}
}
if(rowIndex==0&&columnIndex==5){
console.log(this.pjxList1.length)
return {
rowspan:this.pjxList1.length,
colspan:1
}
}
}