use T[] insteadof Array<T>

This commit is contained in:
wangshuai 2018-12-21 16:32:48 +08:00 committed by 偏右
parent 8c95732bfb
commit cb0a92e13b

View File

@ -85,11 +85,11 @@ export type TableSelectWay = 'onSelect' | 'onSelectMultiple' | 'onSelectAll' | '
export interface TableRowSelection<T> {
type?: RowSelectionType;
selectedRowKeys?: string[] | number[];
onChange?: (selectedRowKeys: string[] | number[], selectedRows: Array<T>) => void;
onChange?: (selectedRowKeys: string[] | number[], selectedRows: T[]) => void;
getCheckboxProps?: (record: T) => Object;
onSelect?: SelectionSelectFn<T>;
onSelectMultiple?: (selected: boolean, selectedRows: Array<T>, changeRows: Array<T>) => void;
onSelectAll?: (selected: boolean, selectedRows: Array<T>, changeRows: Array<T>) => void;
onSelectMultiple?: (selected: boolean, selectedRows: T[], changeRows: T[]) => void;
onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => void;
onSelectInvert?: (selectedRowKeys: string[] | number[]) => void;
selections?: SelectionItem[] | boolean;
hideDefaultSelections?: boolean;