diff --git a/components/table/Table.tsx b/components/table/Table.tsx index 4c69b6e8ab..41deb248a8 100755 --- a/components/table/Table.tsx +++ b/components/table/Table.tsx @@ -560,7 +560,7 @@ export default class Table extends React.Component, any> { warning(recordKey !== undefined, 'Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key.' ); - return recordKey; + return recordKey === undefined ? index : recordKey; } renderRowSelection() {