mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
reuse getColumnKey
This commit is contained in:
parent
1a91018f52
commit
0a55eb8c43
@ -676,7 +676,7 @@ const Table = React.createClass({
|
||||
columns = this.renderColumnsDropdown(columns);
|
||||
columns = columns.map((column, i) => {
|
||||
const newColumn = { ...column };
|
||||
newColumn.key = newColumn.key || newColumn.dataIndex || i;
|
||||
newColumn.key = this.getColumnKey(newColumn, i);
|
||||
return newColumn;
|
||||
});
|
||||
let emptyText;
|
||||
|
Loading…
Reference in New Issue
Block a user