71aee5566ef750d620350469335f47810f50177bc0a8d41489a56883f8ee974ac54676d35cd73614e9f955f9cca6a695b98fedd179f4ef8163bfdd367cebbf 6.7 KB

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