19 lines
738 B
TypeScript
19 lines
738 B
TypeScript
import * as React from 'react';
|
|
import type { ExpandAction } from 'rc-tree/lib/Tree';
|
|
import type { DefaultOptionType, InternalFieldName, OnInternalSelect } from './TreeSelect';
|
|
export interface TreeSelectContextProps {
|
|
virtual?: boolean;
|
|
dropdownMatchSelectWidth?: boolean | number;
|
|
listHeight: number;
|
|
listItemHeight: number;
|
|
listItemScrollOffset?: number;
|
|
treeData: DefaultOptionType[];
|
|
fieldNames: InternalFieldName;
|
|
onSelect: OnInternalSelect;
|
|
treeExpandAction?: ExpandAction;
|
|
treeTitleRender?: (node: any) => React.ReactNode;
|
|
onPopupScroll?: React.UIEventHandler<HTMLDivElement>;
|
|
}
|
|
declare const TreeSelectContext: React.Context<TreeSelectContextProps>;
|
|
export default TreeSelectContext;
|