fix: type error

This commit is contained in:
Wei Zhu 2018-09-30 16:58:25 +08:00
parent 1c1a67fe1d
commit 2bf2bb5af4

View File

@ -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,
});