mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
Merge branch 'master' into feature
This commit is contained in:
commit
50617e7ebe
@ -849,6 +849,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
|
||||
</div>
|
||||
);
|
||||
}
|
||||
const sortTitleString = (sortButton && typeof sortTitle === 'string') ? sortTitle : undefined;
|
||||
return {
|
||||
...column,
|
||||
className: classNames(column.className, {
|
||||
@ -860,7 +861,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
|
||||
title: [
|
||||
<div
|
||||
key="title"
|
||||
title={sortButton ? sortTitle : undefined}
|
||||
title={sortTitleString}
|
||||
className={sortButton ? `${prefixCls}-column-sorters` : undefined}
|
||||
onClick={() => this.toggleSortOrder(column)}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user