dc95a1cf7e55a7f4b8f61000efac2802ddba96f48387288667fdd79f3a86466e7b1d4d9ff29670a35a1b3353cebc36949cffd7b95e84fcfde88a8d81cef0f2 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. import type { MaybeRef } from '@vueuse/core';
  2. import type { App, Ref } from 'vue';
  3. import type { ConfigProviderContext } from '../constants';
  4. export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
  5. export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
  6. export declare function useGlobalComponentSettings(block: string, sizeFallback?: MaybeRef<ConfigProviderContext['size']>): {
  7. ns: {
  8. namespace: import("vue").ComputedRef<string>;
  9. b: (blockSuffix?: string) => string;
  10. e: (element?: string) => string;
  11. m: (modifier?: string) => string;
  12. be: (blockSuffix?: string, element?: string) => string;
  13. em: (element?: string, modifier?: string) => string;
  14. bm: (blockSuffix?: string, modifier?: string) => string;
  15. bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
  16. is: {
  17. (name: string, state: boolean | undefined): string;
  18. (name: string): string;
  19. };
  20. cssVar: (object: Record<string, string>) => Record<string, string>;
  21. cssVarName: (name: string) => string;
  22. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  23. cssVarBlockName: (name: string) => string;
  24. };
  25. locale: import("element-plus/es/hooks").LocaleContext;
  26. zIndex: {
  27. initialZIndex: import("vue").ComputedRef<number>;
  28. currentZIndex: import("vue").ComputedRef<number>;
  29. nextZIndex: () => number;
  30. };
  31. size: import("vue").ComputedRef<"small" | "" | "default" | "large">;
  32. };
  33. export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContext>, app?: App, global?: boolean) => import("vue").ComputedRef<Partial<import("element-plus").ConfigProviderProps>> | undefined;