UNPKG

antd-fx67ll-test

Version:

这是一个测试着玩的私服antd项目,完全照抄v4.16.6的antd源码,请勿使用,仅做发布测试(因每次发布必须要升版本,如发现版本出入请忽略,与官方无关)

30 lines (29 loc) 1.3 kB
import * as React from 'react'; import { ElementOf, Omit } from '../_util/type'; import { TransferListProps, RenderedItem } from './list'; import { KeyWiseTransferItem } from '.'; export declare const OmitProps: ["handleFilter", "handleClear", "checkedKeys"]; export declare type OmitProp = ElementOf<typeof OmitProps>; declare type PartialTransferListProps<RecordType> = Omit<TransferListProps<RecordType>, OmitProp>; export interface TransferListBodyProps<RecordType> extends PartialTransferListProps<RecordType> { filteredItems: RecordType[]; filteredRenderItems: RenderedItem<RecordType>[]; selectedKeys: string[]; } interface TransferListBodyState { current: number; } declare class ListBody<RecordType extends KeyWiseTransferItem> extends React.Component<TransferListBodyProps<RecordType>, TransferListBodyState> { state: { current: number; }; static getDerivedStateFromProps<T>({ filteredRenderItems, pagination }: TransferListBodyProps<T>, { current }: TransferListBodyState): { current: number; } | null; onItemSelect: (item: RecordType) => void; onItemRemove: (item: RecordType) => void; onPageChange: (current: number) => void; getItems: () => RenderedItem<RecordType>[]; render(): JSX.Element; } export default ListBody;