mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
fix getColumnTitle bug
title: <div> <span>title</span> null </div>
This commit is contained in:
parent
13593a9629
commit
1e0400704b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user