17 lines
795 B
TypeScript
17 lines
795 B
TypeScript
import type { OptionProps, SelectProps } from './defaults';
|
|
import type { ExtractPropTypes, InjectionKey, Ref } from 'vue';
|
|
import type { Option } from './select.types';
|
|
import type { TooltipInstance } from 'element-plus/es/components/tooltip';
|
|
export interface SelectV2Context {
|
|
props: ExtractPropTypes<typeof SelectProps>;
|
|
expanded: boolean;
|
|
tooltipRef: Ref<TooltipInstance>;
|
|
onSelect: (option: Option) => void;
|
|
onHover: (idx: number) => void;
|
|
onKeyboardNavigate: (direction: 'forward' | 'backward') => void;
|
|
onKeyboardSelect: () => void;
|
|
}
|
|
export declare const selectV2InjectionKey: InjectionKey<SelectV2Context>;
|
|
export declare type IOptionV2Props = ExtractPropTypes<typeof OptionProps>;
|
|
export declare type ISelectV2Props = ExtractPropTypes<typeof SelectProps>;
|