Browse Source

Do not modify props in Table

pull/131/head
afc163 9 years ago
parent
commit
ea8572d7a4
  1. 9
      components/table/index.jsx

9
components/table/index.jsx

@ -295,11 +295,14 @@ var AntTable = React.createClass({
</span>
</div>;
}
if (!column.originalTitle) {
column.originalTitle = column.title;
let originTitle;
if (Array.isArray(column.title)) {
originTitle = column.title[0];
} else {
originTitle = column.title;
}
column.title = [
column.originalTitle,
originTitle,
sortButton,
filterDropdown
];

Loading…
Cancel
Save