igroot
Version:
An React-based implementation
26 lines (25 loc) • 893 B
TypeScript
import * as React from 'react';
import { TreeSelectProps } from './interface';
import { SelectLocale } from '../select';
import { AntTreeNodeProps } from '../tree';
export { TreeNode, TreeSelectProps } from './interface';
export default class TreeSelect extends React.Component<TreeSelectProps, any> {
static TreeNode: any;
static SHOW_ALL: any;
static SHOW_PARENT: any;
static SHOW_CHILD: any;
static defaultProps: {
prefixCls: string;
transitionName: string;
choiceTransitionName: string;
showSearch: boolean;
};
private rcTreeSelect;
constructor(props: TreeSelectProps);
focus(): void;
blur(): void;
saveTreeSelect: (node: any) => void;
renderSwitcherIcon: ({ isLeaf, loading }: AntTreeNodeProps) => JSX.Element | null;
renderTreeSelect: (locale: SelectLocale) => JSX.Element;
render(): JSX.Element;
}