2022-05-07 14:31:54 +08:00
|
|
|
import type * as React from 'react';
|
|
|
|
import type { ColumnProps } from './Column';
|
2022-06-22 14:57:09 +08:00
|
|
|
import type { ColumnType } from './interface';
|
2020-01-06 17:28:28 +08:00
|
|
|
|
|
|
|
export interface ColumnGroupProps<RecordType> extends Omit<ColumnType<RecordType>, 'children'> {
|
|
|
|
children:
|
|
|
|
| React.ReactElement<ColumnProps<RecordType>>
|
|
|
|
| React.ReactElement<ColumnProps<RecordType>>[];
|
|
|
|
}
|
|
|
|
|
|
|
|
/* istanbul ignore next */
|
2020-12-28 15:30:18 +08:00
|
|
|
/** This is a syntactic sugar for `columns` prop. So HOC will not work on this. */
|
2020-01-06 17:28:28 +08:00
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
function ColumnGroup<RecordType>(_: ColumnGroupProps<RecordType>) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ColumnGroup;
|