tokens.d.ts 727 B

1234567891011121314151617
  1. import { PopperProps } from "../../popper/src/popper.js";
  2. import { ComputedRef, InjectionKey, Ref } from "vue";
  3. //#region ../../packages/components/dropdown/src/tokens.d.ts
  4. type ElDropdownInjectionContext = {
  5. contentRef: Ref<HTMLElement | undefined>;
  6. role: ComputedRef<PopperProps['role']>;
  7. triggerId: ComputedRef<string>;
  8. isUsingKeyboard: Ref<boolean>;
  9. onItemLeave: (e: PointerEvent) => void;
  10. onItemEnter: (e: PointerEvent) => void;
  11. handleClose: () => void;
  12. };
  13. declare const DROPDOWN_INJECTION_KEY: InjectionKey<ElDropdownInjectionContext>;
  14. declare const DROPDOWN_INSTANCE_INJECTION_KEY = "elDropdown";
  15. //#endregion
  16. export { DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY, ElDropdownInjectionContext };