+ {columns.map((column, tdIndex) => {
+ let attributes
+ if(column.onCell) {
+ attributes = column.onCell(item, index)
+ }
+ if((attributes?.colSpan === 0 || column.colSpan === 0) || (attributes?.rowSpan === 0 || column.rowSpan === 0)) return null
+ return (
+ |
+ {
+ column.render
+ ? column.render(item[column.dataIndex], index) // index - row number
+ : item[column.dataIndex]
+ }
+ |
+ )
+ })}
+
+ )
+ }))
+ }
+