bar.vue.d.ts 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. declare const _default: import("vue").DefineComponent<{
  2. readonly always: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  3. readonly width: StringConstructor;
  4. readonly height: StringConstructor;
  5. readonly ratioX: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  6. readonly ratioY: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  7. }, {
  8. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  9. readonly always: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  10. readonly width: StringConstructor;
  11. readonly height: StringConstructor;
  12. readonly ratioX: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  13. readonly ratioY: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  14. }>> & {
  15. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  16. }>>;
  17. moveX: import("vue").Ref<number>;
  18. moveY: import("vue").Ref<number>;
  19. handleScroll: (wrap: HTMLDivElement) => void;
  20. Thumb: import("vue").DefineComponent<{
  21. readonly vertical: BooleanConstructor;
  22. readonly size: StringConstructor;
  23. readonly move: NumberConstructor;
  24. readonly ratio: {
  25. readonly type: import("vue").PropType<number>;
  26. readonly required: true;
  27. readonly validator: ((val: unknown) => boolean) | undefined;
  28. __epPropKey: true;
  29. };
  30. readonly always: BooleanConstructor;
  31. }, {
  32. COMPONENT_NAME: string;
  33. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  34. readonly vertical: BooleanConstructor;
  35. readonly size: StringConstructor;
  36. readonly move: NumberConstructor;
  37. readonly ratio: {
  38. readonly type: import("vue").PropType<number>;
  39. readonly required: true;
  40. readonly validator: ((val: unknown) => boolean) | undefined;
  41. __epPropKey: true;
  42. };
  43. readonly always: BooleanConstructor;
  44. }>> & {
  45. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  46. }>>;
  47. scrollbar: import("../../..").ScrollbarContext;
  48. ns: {
  49. namespace: import("vue").Ref<string>;
  50. b: (blockSuffix?: string) => string;
  51. e: (element?: string | undefined) => string;
  52. m: (modifier?: string | undefined) => string;
  53. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  54. em: (element?: string | undefined, modifier?: string | undefined) => string;
  55. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  56. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  57. is: {
  58. (name: string, state: boolean | undefined): string;
  59. (name: string): string;
  60. };
  61. cssVar: (object: Record<string, string>) => Record<string, string>;
  62. cssVarName: (name: string) => string;
  63. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  64. cssVarBlockName: (name: string) => string;
  65. };
  66. instance: import("vue").Ref<HTMLDivElement | undefined>;
  67. thumb: import("vue").Ref<HTMLDivElement | undefined>;
  68. thumbState: import("vue").Ref<{
  69. X?: number | undefined;
  70. Y?: number | undefined;
  71. }>;
  72. visible: import("vue").Ref<boolean>;
  73. cursorDown: boolean;
  74. cursorLeave: boolean;
  75. originalOnSelectStart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  76. bar: import("vue").ComputedRef<{
  77. readonly offset: "offsetHeight";
  78. readonly scroll: "scrollTop";
  79. readonly scrollSize: "scrollHeight";
  80. readonly size: "height";
  81. readonly key: "vertical";
  82. readonly axis: "Y";
  83. readonly client: "clientY";
  84. readonly direction: "top";
  85. } | {
  86. readonly offset: "offsetWidth";
  87. readonly scroll: "scrollLeft";
  88. readonly scrollSize: "scrollWidth";
  89. readonly size: "width";
  90. readonly key: "horizontal";
  91. readonly axis: "X";
  92. readonly client: "clientX";
  93. readonly direction: "left";
  94. }>;
  95. thumbStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
  96. offsetRatio: import("vue").ComputedRef<number>;
  97. clickThumbHandler: (e: MouseEvent) => void;
  98. clickTrackHandler: (e: MouseEvent) => void;
  99. startDrag: (e: MouseEvent) => void;
  100. mouseMoveDocumentHandler: (e: MouseEvent) => void;
  101. mouseUpDocumentHandler: () => void;
  102. mouseMoveScrollbarHandler: () => void;
  103. mouseLeaveScrollbarHandler: () => void;
  104. restoreOnselectstart: () => void;
  105. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  106. readonly vertical: BooleanConstructor;
  107. readonly size: StringConstructor;
  108. readonly move: NumberConstructor;
  109. readonly ratio: {
  110. readonly type: import("vue").PropType<number>;
  111. readonly required: true;
  112. readonly validator: ((val: unknown) => boolean) | undefined;
  113. __epPropKey: true;
  114. };
  115. readonly always: BooleanConstructor;
  116. }>>, {
  117. readonly vertical: boolean;
  118. readonly always: boolean;
  119. }>;
  120. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  121. readonly always: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  122. readonly width: StringConstructor;
  123. readonly height: StringConstructor;
  124. readonly ratioX: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  125. readonly ratioY: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  126. }>>, {
  127. readonly always: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  128. readonly ratioX: number;
  129. readonly ratioY: number;
  130. }>;
  131. export default _default;