Files
pig-farm-controller-fe/node_modules/element-plus/es/components/select-v2/src/token.d.ts
2025-09-19 14:25:20 +08:00

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 };