mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
pref: fix codecov problem
This commit is contained in:
parent
61ae2267c5
commit
4b6d2ede2f
@ -866,8 +866,9 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
|
||||
typeof title !== 'number'
|
||||
) {
|
||||
const props = title.props;
|
||||
const { children } = props;
|
||||
if (props && props.children) {
|
||||
return this.getColumnTitle(props.children, props);
|
||||
return this.getColumnTitle(children, props);
|
||||
}
|
||||
} else {
|
||||
return parentNode.title || title;
|
||||
|
Loading…
Reference in New Issue
Block a user