You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
594 B

1 month ago
  1. import type { InjectionKey, Ref } from 'vue';
  2. export interface ElZIndexInjectionContext {
  3. current: number;
  4. }
  5. export declare const defaultInitialZIndex = 2000;
  6. export declare const ZINDEX_INJECTION_KEY: InjectionKey<ElZIndexInjectionContext>;
  7. export declare const zIndexContextKey: InjectionKey<Ref<number | undefined>>;
  8. export declare const useZIndex: (zIndexOverrides?: Ref<number>) => {
  9. initialZIndex: import("vue").ComputedRef<number>;
  10. currentZIndex: import("vue").ComputedRef<number>;
  11. nextZIndex: () => number;
  12. };
  13. export type UseZIndexReturn = ReturnType<typeof useZIndex>;