| 123456789101112131415 |
- import type { OptionV2Props, SelectV2Instance, SelectV2Props } from './defaults';
- import type { InjectionKey, Ref } from 'vue';
- import type { Option } from './select.types';
- import type { TooltipInstance } from 'element-plus/es/components/tooltip';
- export interface SelectV2Context {
- props: SelectV2Props;
- expanded: Ref<boolean>;
- tooltipRef: Ref<TooltipInstance | undefined>;
- onSelect: (option: Option) => void;
- onHover: (idx?: number) => void;
- onKeyboardNavigate: (direction: 'forward' | 'backward') => void;
- onKeyboardSelect: () => void;
- }
- export declare const selectV2InjectionKey: InjectionKey<SelectV2Context>;
- export type { SelectV2Instance, OptionV2Props, SelectV2Props };
|