mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
21 lines
572 B
TypeScript
21 lines
572 B
TypeScript
|
import { ColumnType } from './interface';
|
||
|
import { ColumnProps } from './Column';
|
||
|
|
||
|
export interface ColumnGroupProps<RecordType> extends Omit<ColumnType<RecordType>, 'children'> {
|
||
|
children:
|
||
|
| React.ReactElement<ColumnProps<RecordType>>
|
||
|
| React.ReactElement<ColumnProps<RecordType>>[];
|
||
|
}
|
||
|
|
||
|
/* istanbul ignore next */
|
||
|
/**
|
||
|
* This is a syntactic sugar for `columns` prop.
|
||
|
* So HOC will not work on this.
|
||
|
*/
|
||
|
// eslint-disable-next-line no-unused-vars
|
||
|
function ColumnGroup<RecordType>(_: ColumnGroupProps<RecordType>) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
export default ColumnGroup;
|