TreeSelectContext.d.ts 613 B

1234567891011121314
  1. import type { ExpandAction } from '../vc-tree/props';
  2. import type { DefaultOptionType, InternalFieldName, OnInternalSelect } from './TreeSelect';
  3. export interface TreeSelectContextProps {
  4. virtual?: boolean;
  5. dropdownMatchSelectWidth?: boolean | number;
  6. listHeight: number;
  7. listItemHeight: number;
  8. treeData: DefaultOptionType[];
  9. fieldNames: InternalFieldName;
  10. onSelect: OnInternalSelect;
  11. treeExpandAction?: ExpandAction;
  12. }
  13. export declare function useProvideSelectContext(props: TreeSelectContextProps): void;
  14. export default function useInjectSelectContext(): TreeSelectContextProps;