<Table {...listProps} dataSource={list} className={classnames({ [styles.table]: true })} bordered scroll={{ x: 100 }} columns={getColumns()} rowSelection={handlerRowSelection} // components={getBodyWrapper} rowKey={record => record.timestamp + '' + record.module + '' + generalKey()} pagination={{ simple: false, current: listProps.pagination.current, total: listProps.pagination.total, pageSizeOptions: ['10', '20', '30', '40', '50'], showSizeChanger: true, pageSize: listProps.pagination.pageSize, showTotal: (count = listProps.pagination.total) => { return '共' + count + '條數據' }, onChange: (page, currentType) => { }, }} />
我多加了rowKey那一行,把他去掉,就能獲取到了。自己猜測應該是數據值與他自己賦的值有沖突。
哈哈哈