mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
fix: type error
This commit is contained in:
parent
1c1a67fe1d
commit
2bf2bb5af4
@ -832,7 +832,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
|
||||
const { filters, sortOrder } = this.state;
|
||||
// https://github.com/ant-design/ant-design/issues/11246#issuecomment-405009167
|
||||
if (typeof title === 'function') {
|
||||
return title({
|
||||
return (title as Function)({
|
||||
filters,
|
||||
sortOrder,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user