4c367a5c58142557cb7c52bd30a69aaeed010e9a6e3baa13d57bd4cff2d63d145580880433e775d6ce2f606803d842842a2d30ea2602b0edcea389232c4e6b 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import type { ComputedRef, Ref, StyleValue } from 'vue';
  2. import type { ComponentSize } from 'element-plus/es/constants';
  3. import type { InputTagProps } from '../input-tag';
  4. interface UseInputTagDomOptions {
  5. props: InputTagProps;
  6. isFocused: Ref<boolean>;
  7. hovering: Ref<boolean>;
  8. disabled: ComputedRef<boolean>;
  9. inputValue: Ref<string | undefined>;
  10. size: ComputedRef<ComponentSize>;
  11. validateState: ComputedRef<string>;
  12. validateIcon: ComputedRef<boolean>;
  13. needStatusIcon: ComputedRef<boolean>;
  14. }
  15. export declare function useInputTagDom({ props, isFocused, hovering, disabled, inputValue, size, validateState, validateIcon, needStatusIcon, }: UseInputTagDomOptions): {
  16. ns: {
  17. namespace: ComputedRef<string>;
  18. b: (blockSuffix?: string) => string;
  19. e: (element?: string) => string;
  20. m: (modifier?: string) => string;
  21. be: (blockSuffix?: string, element?: string) => string;
  22. em: (element?: string, modifier?: string) => string;
  23. bm: (blockSuffix?: string, modifier?: string) => string;
  24. bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
  25. is: {
  26. (name: string, state: boolean | undefined): string;
  27. (name: string): string;
  28. };
  29. cssVar: (object: Record<string, string>) => Record<string, string>;
  30. cssVarName: (name: string) => string;
  31. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  32. cssVarBlockName: (name: string) => string;
  33. };
  34. nsInput: {
  35. namespace: ComputedRef<string>;
  36. b: (blockSuffix?: string) => string;
  37. e: (element?: string) => string;
  38. m: (modifier?: string) => string;
  39. be: (blockSuffix?: string, element?: string) => string;
  40. em: (element?: string, modifier?: string) => string;
  41. bm: (blockSuffix?: string, modifier?: string) => string;
  42. bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
  43. is: {
  44. (name: string, state: boolean | undefined): string;
  45. (name: string): string;
  46. };
  47. cssVar: (object: Record<string, string>) => Record<string, string>;
  48. cssVarName: (name: string) => string;
  49. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  50. cssVarBlockName: (name: string) => string;
  51. };
  52. containerKls: ComputedRef<unknown[]>;
  53. containerStyle: ComputedRef<StyleValue>;
  54. innerKls: ComputedRef<string[]>;
  55. showClear: ComputedRef<boolean | "" | 0 | undefined>;
  56. showSuffix: ComputedRef<boolean | "" | import("vue").Slot>;
  57. };
  58. export {};