amis-rpc-design/node_modules/rc-tree-select/es/TreeSelectContext.d.ts
2023-10-07 19:42:30 +08:00

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;