Files
game-cards-poker-design/frontend/node_modules/element-plus/es/components/select-v2/src/token.d.ts

19 lines
809 B
TypeScript
Raw Normal View History

import { TooltipInstance } from "../../tooltip/src/tooltip.js";
import { Option } from "./select.types.js";
import { OptionV2Props, SelectV2Instance, SelectV2Props } from "./defaults.js";
import { InjectionKey, Ref } from "vue";
//#region ../../packages/components/select-v2/src/token.d.ts
interface SelectV2Context {
props: SelectV2Props;
expanded: Ref<boolean>;
tooltipRef: Ref<TooltipInstance | undefined>;
contentId: Ref<string>;
onSelect: (option: Option) => void;
onHover: (idx?: number) => void;
onKeyboardNavigate: (direction: 'forward' | 'backward') => void;
onKeyboardSelect: () => void;
}
declare const selectV2InjectionKey: InjectionKey<SelectV2Context>;
//#endregion
export { type OptionV2Props, SelectV2Context, type SelectV2Instance, type SelectV2Props, selectV2InjectionKey };