This commit is contained in:
2025-09-19 14:25:20 +08:00
parent 269893a435
commit fbf3f77229
24949 changed files with 2839404 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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 };