(count = 10, prefix = 'column-', props)
| 19 | import BaseTableExpandIcon from 'react-base-table/ExpandIcon' |
| 20 | |
| 21 | const generateColumns = (count = 10, prefix = 'column-', props) => |
| 22 | new Array(count).fill(0).map((column, columnIndex) => ({ |
| 23 | ...props, |
| 24 | key: `${prefix}${columnIndex}`, |
| 25 | dataKey: `${prefix}${columnIndex}`, |
| 26 | title: `Column ${columnIndex}`, |
| 27 | width: 150, |
| 28 | })) |
| 29 | |
| 30 | const generateData = (columns, count = 200, prefix = 'row-') => |
| 31 | new Array(count).fill(0).map((row, rowIndex) => { |
no outgoing calls
no test coverage detected