mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
863f61d908
Co-authored-by: afc163 <afc163@gmail.com>
20 lines
641 B
TypeScript
20 lines
641 B
TypeScript
import type * as React from 'react';
|
|
|
|
import type { AnyObject } from '../_util/type';
|
|
import type { ColumnProps } from './Column';
|
|
import type { ColumnType } from './interface';
|
|
|
|
export interface ColumnGroupProps<RecordType = AnyObject>
|
|
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. */
|
|
|
|
const ColumnGroup = <RecordType extends AnyObject>(_: ColumnGroupProps<RecordType>) => null;
|
|
|
|
export default ColumnGroup;
|