import React from 'react'; import { DraggableProvided, DraggableStateSnapshot } from 'react-beautiful-dnd'; import { TransferListProps, TransferListState, TransferItem, RenderCheckboxObj, TransferListMixin, TransferListBodyProps, TransferKeyType } from './iTransfer'; declare function noop(): void; declare class TransferList extends React.Component { static defaultProps: { dataSource: never[]; titleText: string; showSearch: boolean; render: typeof noop; fieldid: string; }; private timer; constructor(props: TransferListProps); componentDidMount(): void; componentWillUnmount(): void; shouldComponentUpdate(...args: TransferListMixin): boolean; matchFilter: (text: string, item: TransferItem) => boolean | void; /** * 获取Checkbox状态 * @param {*} filteredDataSource dataSource中刨去设置为disabled的部分 */ getCheckStatus(filteredDataSource: TransferItem[]): "none" | "all" | "part"; /** * 点击list item,选中或取消选中 * @param selectedItem 选中的item的信息,和dataSource数据源中的item信息一致 */ handleSelect: (selectedItem: TransferItem) => void; handleFilter: (e: string) => void; handleClear: () => void; handleScroll: (e: React.UIEvent) => void; renderItem: (item: TransferItem) => { renderedText: string; renderedEl: string | React.ReactElement>; }; renderCheckbox({ prefixCls, filteredDataSource, checked, checkPart, disabled }: RenderCheckboxObj): JSX.Element; onKeyDown: (event: React.KeyboardEvent, provided: typeof DraggableProvided, snapshot: typeof DraggableStateSnapshot) => void; getDefaultBodyContent: () => { filteredDataSource: TransferItem[]; totalDataSource: any[]; defaultBodyContent: JSX.Element; }; renderBodyContent: (renderList: (props: TransferListBodyProps) => React.ReactNode, props: TransferListBodyProps, defaultListBody: React.ReactNode) => { customize: boolean; bodyContent: React.ReactNode; }; getSelectAllLabel: (checkedCount: number, totalCount: number, checkedKeys: TransferKeyType[], totalDataSource: any[]) => React.ReactNode; render(): JSX.Element; } export default TransferList;