bar.vue.d.ts 6.7 KB

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