ant-design/components/table/ColumnGroup.ts

20 lines
641 B
TypeScript
Raw Normal View History

import type * as React from 'react';
import type { AnyObject } from '../_util/type';
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 = AnyObject>
extends Omit<ColumnType<RecordType>, 'children'> {
2020-01-06 17:28:28 +08:00
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;
2020-01-06 17:28:28 +08:00
export default ColumnGroup;