+ {dataSource?.length === 0 && locale?.emptyText}
+
+
+ {columns.map((col: any, index: number) => (
+
+ {typeof col.title === "string" ? col.title : "Complex Title"}
+
+ ))}
+
+
+ {dataSource?.map((record: any, rowIndex: number) => (
+
+ {columns.map((col: any, colIndex: number) => {
+ const cellValue = col.dataIndex ? record[col.dataIndex] : record;
+ const content = col.render
+ ? col.render(cellValue, record, rowIndex)
+ : cellValue;
+
+ const cellKey = col.key || col.dataIndex || colIndex;
+ return
{content}
;
+ })}
+
+ ))}
+
+ );
+ },
+ Tooltip: ({ children }: any) =>