Browse Source

reuse getColumnKey

pull/1364/head
afc163 9 years ago
parent
commit
0a55eb8c43
  1. 2
      components/table/index.jsx

2
components/table/index.jsx

@ -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…
Cancel
Save