@alicloud/console-components
Version:
Alibaba Cloud React Components
40 lines (39 loc) • 3.66 kB
TypeScript
import React from 'react';
import { TransferProps } from '@alifd/next/types/transfer';
declare const _default: React.ForwardRefExoticComponent<TransferProps & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<TransferProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
groupDatasource(value: string[], itemValues: string[], dataSource: import("@alifd/next/types/transfer").TransferDataItem[]): import("@alifd/next/types/transfer").TransferDataItem[];
handlePanelChange(position: import("@alifd/next/types/transfer").PositionType, value: string[]): void;
handlePanelSort(position: import("@alifd/next/types/transfer").PositionType, dragValue: string, referenceValue: string, dragGap: import("@alifd/next/types/transfer").DragGapType): void;
handleMoveItem(direction: import("@alifd/next/types/transfer").PositionType): void;
handleSimpleMove(direction: import("@alifd/next/types/transfer").PositionType, v: string): void;
handleSimpleMoveAll(direction: import("@alifd/next/types/transfer").PositionType): void;
setValueState(st: Partial<import("@alifd/next/types/transfer/types").TransferState>, rightValue: string[], leftValue: string[], movedValue: string[], direction: import("@alifd/next/types/transfer").PositionType): void;
renderCenter(): React.JSX.Element;
render(): React.JSX.Element;
context: any;
setState<K extends keyof import("@alifd/next/types/transfer/types").TransferState>(state: import("@alifd/next/types/transfer/types").TransferState | ((prevState: Readonly<import("@alifd/next/types/transfer/types").TransferState>, props: Readonly<TransferProps>) => import("@alifd/next/types/transfer/types").TransferState | Pick<import("@alifd/next/types/transfer/types").TransferState, K>) | Pick<import("@alifd/next/types/transfer/types").TransferState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<TransferProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<import("@alifd/next/types/transfer/types").TransferState>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<TransferProps>, nextState: Readonly<import("@alifd/next/types/transfer/types").TransferState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<TransferProps>, prevState: Readonly<import("@alifd/next/types/transfer/types").TransferState>): any;
componentDidUpdate?(prevProps: Readonly<TransferProps>, prevState: Readonly<import("@alifd/next/types/transfer/types").TransferState>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<TransferProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TransferProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<TransferProps>, nextState: Readonly<import("@alifd/next/types/transfer/types").TransferState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<TransferProps>, nextState: Readonly<import("@alifd/next/types/transfer/types").TransferState>, nextContext: any): void;
}, {}> & {
normalizeValue: (value?: string | string[]) => string[];
}, {}>;
export default _default;
export type { TransferProps } from '@alifd/next/types/transfer';