mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
Do not modify props in Table
This commit is contained in:
parent
222545b771
commit
ea8572d7a4
@ -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…
Reference in New Issue
Block a user