elementui合并行

:span-method="yhmxdbMethod"


    yhmxdbMethod({row,column,rowIndex,columnIndex}) {
      if (columnIndex === 0 && this.total>0) {
          if (rowIndex % this.total === 0) {
            return {
              rowspan: this.total,
              colspan: 1
            };
          } else {
            return {
              rowspan: 0,
              colspan: 0
            };
          }
        }
    },

elementui合并行_第1张图片

 

你可能感兴趣的:(笔记,前端)