16 lines
591 B
TypeScript
16 lines
591 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;
|
|
treeData: DefaultOptionType[];
|
|
fieldNames: InternalFieldName;
|
|
onSelect: OnInternalSelect;
|
|
treeExpandAction?: ExpandAction;
|
|
}
|
|
declare const TreeSelectContext: React.Context<TreeSelectContextProps>;
|
|
export default TreeSelectContext;
|