jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
27 lines (26 loc) • 964 B
TypeScript
import React from 'react';
import type { Option, Options } from 'jamis-core';
import type { TabsTransferProps } from '../../types';
interface TabsTransferState {
inputValue: string;
searchResult: Options | null;
}
export declare class TabsTransfer extends React.Component<TabsTransferProps, TabsTransferState> {
state: {
inputValue: string;
searchResult: null;
};
unmounted: boolean;
cancelSearch?: () => void;
componentWillUnmount(): void;
handleSearch(text: string, option: Option): void;
handleSeachCancel(): void;
lazySearch: import("lodash").DebouncedFunc<(text: string, option: Option) => void>;
handleSearchKeyDown(e: React.KeyboardEvent<any>): void;
handleTabChange(key: number): void;
renderSearchResult(searchResult: Options | null): JSX.Element;
renderSelect(): JSX.Element;
renderOptions(option: Option): JSX.Element;
render(): JSX.Element;
}
export default TabsTransfer;