This commit is contained in:
yiminghe 2015-08-12 11:57:44 +08:00
parent ea8572d7a4
commit 5241f6a472

View File

@ -262,6 +262,7 @@ var AntTable = React.createClass({
renderColumnsDropdown(columns) {
return columns.map((column) => {
column = objectAssign({}, column);
let key = this.getColumnKey(column);
let filterDropdown, menus, sortButton;
if (column.filters && column.filters.length > 0) {
@ -295,14 +296,8 @@ var AntTable = React.createClass({
</span>
</div>;
}
let originTitle;
if (Array.isArray(column.title)) {
originTitle = column.title[0];
} else {
originTitle = column.title;
}
column.title = [
originTitle,
column.title,
sortButton,
filterDropdown
];