chore: Export some useful define (#19770)

This commit is contained in:
二货机器人 2019-11-17 17:57:35 +08:00 committed by GitHub
parent ff89ce0aed
commit 5d98667687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -30,6 +30,8 @@ import renderExpandIcon from './ExpandIcon';
import scrollTo from '../_util/scrollTo';
import defaultLocale from '../locale/en_US';
export { ColumnsType, TablePaginationConfig };
const EMPTY_LIST: any[] = [];
interface ChangeEventInfo<RecordType> {

View File

@ -94,7 +94,10 @@ export interface ColumnType<RecordType> extends RcColumnType<RecordType> {
onFilterDropdownVisibleChange?: (visible: boolean) => void;
}
export type ColumnsType<RecordType> = (ColumnGroupType<RecordType> | ColumnType<RecordType>)[];
export type ColumnsType<RecordType = unknown> = (
| ColumnGroupType<RecordType>
| ColumnType<RecordType>
)[];
export interface SelectionItem {
key: string;

View File

@ -127,7 +127,7 @@
"rc-slider": "~8.7.1",
"rc-steps": "~3.5.0",
"rc-switch": "~1.9.0",
"rc-table": "~7.0.0-alpha.16",
"rc-table": "~7.0.0-alpha.20",
"rc-tabs": "~9.6.4",
"rc-time-picker": "~4.0.0-alpha.2",
"rc-tooltip": "~3.7.3",