scrollbar.vue.d.ts 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. import type { ScrollbarDirection } from './scrollbar';
  2. import type { CSSProperties, StyleValue } from 'vue';
  3. declare function scrollTo(xCord: number, yCord?: number): void;
  4. declare function scrollTo(options: ScrollToOptions): void;
  5. declare var __VLS_8: {};
  6. type __VLS_Slots = {} & {
  7. default?: (props: typeof __VLS_8) => any;
  8. };
  9. declare const __VLS_base: import("vue").DefineComponent<{
  10. readonly ariaLabel: StringConstructor;
  11. readonly ariaOrientation: {
  12. readonly type: import("vue").PropType<string>;
  13. readonly required: false;
  14. readonly validator: ((val: unknown) => boolean) | undefined;
  15. __epPropKey: true;
  16. };
  17. readonly distance: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  18. readonly height: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  19. readonly maxHeight: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  20. readonly native: BooleanConstructor;
  21. readonly wrapStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | false | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | false | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, "", boolean>;
  22. readonly wrapClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  23. readonly viewClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  24. readonly viewStyle: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown, "", boolean>;
  25. readonly noresize: BooleanConstructor;
  26. readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
  27. readonly always: BooleanConstructor;
  28. readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
  29. readonly tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
  30. readonly id: StringConstructor;
  31. readonly role: StringConstructor;
  32. }, {
  33. /** @description scrollbar wrap ref */
  34. wrapRef: import("vue").Ref<HTMLDivElement | undefined>;
  35. /** @description update scrollbar state manually */
  36. update: () => void;
  37. /** @description scrolls to a particular set of coordinates */
  38. scrollTo: typeof scrollTo;
  39. /** @description set distance to scroll top */
  40. setScrollTop: (value: number) => void;
  41. /** @description set distance to scroll left */
  42. setScrollLeft: (value: number) => void;
  43. /** @description handle scroll event */
  44. handleScroll: () => void;
  45. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  46. scroll: (args_0: {
  47. scrollTop: number;
  48. scrollLeft: number;
  49. }) => void;
  50. "end-reached": (direction: ScrollbarDirection) => void;
  51. }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
  52. readonly ariaLabel: StringConstructor;
  53. readonly ariaOrientation: {
  54. readonly type: import("vue").PropType<string>;
  55. readonly required: false;
  56. readonly validator: ((val: unknown) => boolean) | undefined;
  57. __epPropKey: true;
  58. };
  59. readonly distance: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  60. readonly height: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  61. readonly maxHeight: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  62. readonly native: BooleanConstructor;
  63. readonly wrapStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | false | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | false | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, "", boolean>;
  64. readonly wrapClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  65. readonly viewClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  66. readonly viewStyle: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown, "", boolean>;
  67. readonly noresize: BooleanConstructor;
  68. readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
  69. readonly always: BooleanConstructor;
  70. readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
  71. readonly tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
  72. readonly id: StringConstructor;
  73. readonly role: StringConstructor;
  74. }>> & {
  75. onScroll?: ((args_0: {
  76. scrollTop: number;
  77. scrollLeft: number;
  78. }) => any) | undefined;
  79. "onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
  80. }, {
  81. readonly tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
  82. readonly height: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
  83. readonly maxHeight: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
  84. readonly always: boolean;
  85. readonly tag: string;
  86. readonly minSize: number;
  87. readonly distance: number;
  88. readonly wrapStyle: StyleValue;
  89. readonly wrapClass: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
  90. readonly viewClass: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
  91. readonly viewStyle: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
  92. readonly native: boolean;
  93. readonly noresize: boolean;
  94. }, {}>;
  95. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  96. declare const _default: typeof __VLS_export;
  97. export default _default;
  98. type __VLS_WithSlots<T, S> = T & {
  99. new (): {
  100. $slots: S;
  101. };
  102. };