mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 16:58:00 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
20 lines
613 B
TypeScript
20 lines
613 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;
|