mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +08:00
7322aa6f5f
This reverts commit 6759887c44
.
19 lines
612 B
TypeScript
19 lines
612 B
TypeScript
import type * as React from 'react';
|
|
import type { ColumnProps } from './Column';
|
|
import type { ColumnType } from './interface';
|
|
|
|
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;
|