index.d.ts 602 B

12345678910111213
  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 declare type UseZIndexReturn = ReturnType<typeof useZIndex>;