popper.d.ts 1.4 KB

1234567891011121314151617181920212223
  1. import type { ExtractPropTypes } from 'vue';
  2. import type Popper from './popper.vue';
  3. declare const effects: readonly ["light", "dark"];
  4. declare const triggers: readonly ["click", "contextmenu", "hover", "focus"];
  5. export declare const Effect: {
  6. readonly LIGHT: "light";
  7. readonly DARK: "dark";
  8. };
  9. export declare const roleTypes: readonly ["dialog", "grid", "group", "listbox", "menu", "navigation", "tooltip", "tree"];
  10. export type PopperEffect = typeof effects[number] | (string & NonNullable<unknown>);
  11. export type PopperTrigger = typeof triggers[number];
  12. export declare const popperProps: {
  13. readonly role: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
  14. };
  15. export type PopperProps = ExtractPropTypes<typeof popperProps>;
  16. export type PopperInstance = InstanceType<typeof Popper> & unknown;
  17. /** @deprecated use `popperProps` instead, and it will be deprecated in the next major version */
  18. export declare const usePopperProps: {
  19. readonly role: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
  20. };
  21. /** @deprecated use `PopperProps` instead, and it will be deprecated in the next major version */
  22. export type UsePopperProps = PopperProps;
  23. export {};