ant-design/components/table/ColumnGroup.tsx

19 lines
597 B
TypeScript
Raw Normal View History

import * as React from 'react';
2020-01-06 17:28:28 +08:00
import { ColumnType } from './interface';
import { ColumnProps } from './Column';
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. */
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;