You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
612 B
19 lines
612 B
3 years ago
|
import type * as React from 'react';
|
||
|
import type { ColumnProps } from './Column';
|
||
2 years ago
|
import type { ColumnType } from './interface';
|
||
5 years ago
|
|
||
|
export interface ColumnGroupProps<RecordType> extends Omit<ColumnType<RecordType>, 'children'> {
|
||
|
children:
|
||
|
| React.ReactElement<ColumnProps<RecordType>>
|
||
|
| React.ReactElement<ColumnProps<RecordType>>[];
|
||
|
}
|
||
|
|
||
|
/* istanbul ignore next */
|
||
4 years ago
|
/** This is a syntactic sugar for `columns` prop. So HOC will not work on this. */
|
||
5 years ago
|
// eslint-disable-next-line no-unused-vars
|
||
|
function ColumnGroup<RecordType>(_: ColumnGroupProps<RecordType>) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
export default ColumnGroup;
|