amis-rpc-design/node_modules/rc-table/lib/sugar/ColumnGroup.d.ts
2023-10-07 19:42:30 +08:00

13 lines
543 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>> | readonly React.ReactElement<ColumnProps<RecordType>>[];
}
/**
* This is a syntactic sugar for `columns` prop.
* So HOC will not work on this.
*/
declare function ColumnGroup<RecordType>(_: ColumnGroupProps<RecordType>): any;
export default ColumnGroup;