import * as React from "react"; import { ConfigConsumerProps } from "../Config"; export interface ITransferProps { /** * 组件包含的内容 * * @default null **/ children?: React.ReactNode; /** * 自定义组件类名 * * @default '' **/ className?: string; /** * 排列方向 * * @default 'column' **/ direction?: string; /** * 点击穿梭按钮时回调函数 * * @default (any[],any[],any[],any[],string) => void **/ handleTransfer?: (sourceList: any[], targetList: any[], sourceCheck: any[], targetCheck: any[], type: string) => void; /** * 组件使用类目前缀 * * @default 'lg' **/ prefixCls?: string; /** * 传入的源数据列表 * * @default '[]' **/ sourceData: any; /** * 移动目标的数据列表 * * @default '[]' **/ targetData?: any; } export interface ITransferState { sourceList: any; targetList: any; sourceCheck: any; targetCheck: any; checkAllSrc: boolean; checkAllTar: boolean; } export declare class Transfer extends React.Component { static defaultProps: { direction: string; sourceData: never[]; targetData: never[]; }; constructor(props: any); componentWillReceiveProps(nextProps: any): void; handleTransferClick(type: string): void; handleCheckSource(val: any, checked: boolean, index: number): void; handleCheckTarget(val: any, checked: boolean, index: number): void; renderInner(list: any[], type: string): JSX.Element; renderTransfer: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Transfer;