iView Table merged cells (rows, columns)

row/column merge

Set the attribute span-method to specify the algorithm for merging rows or columns.

The method parameter is 4 objects:

  • row : the current row

  • column : the current column

  • rowIndex : current row index

  • columnIndex : current column index

This function can return an array containing two elements, the first element represents the rowspan, and the second element represents the colspan. Can also return an object with keys rowspan and colspan.

The official document does not explain rowspan, colspan

Here are the details:

rowspan=0 hides the row

rowspan=1 show the row

If rowspan is greater than 1, it represents the number of merged rows

Colspan is the same as rowspan and replaced by columns

Merge order is row: left to right column: top to bottom

Guess you like

Origin blog.csdn.net/qq_36657291/article/details/129045571