Do not modify props in Table

This commit is contained in:
afc163 2015-08-12 11:46:42 +08:00
parent 222545b771
commit ea8572d7a4

View File

@ -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
];