tokens.d.ts 759 B

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