mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
rebase
This commit is contained in:
parent
ea8572d7a4
commit
5241f6a472
@ -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
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user