fix getColumnTitle bug

title: <div>
           <span>title</span>
           null
        </div>
This commit is contained in:
陈广亮 2018-12-10 15:00:49 +08:00 committed by 偏右
parent 13593a9629
commit 1e0400704b

View File

@ -882,8 +882,8 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
}
if (!(title instanceof Function) && typeof title !== 'string' && typeof title !== 'number') {
const props = title.props;
const { children } = props;
if (props && props.children) {
const { children } = props;
return this.getColumnTitle(children, props);
}
} else {