16 lines
708 B
TypeScript
16 lines
708 B
TypeScript
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 };
|