51 lines
2.1 KiB
TypeScript
51 lines
2.1 KiB
TypeScript
import { ScrollbarDirection, ScrollbarProps } from "./scrollbar.js";
|
|
import * as _$vue from "vue";
|
|
import { CSSProperties, StyleValue } from "vue";
|
|
|
|
//#region ../../packages/components/scrollbar/src/scrollbar.vue.d.ts
|
|
declare function scrollTo(xCord: number, yCord?: number): void;
|
|
declare function scrollTo(options: ScrollToOptions): void;
|
|
declare var __VLS_9: {};
|
|
type __VLS_Slots = {} & {
|
|
default?: (props: typeof __VLS_9) => any;
|
|
};
|
|
declare const __VLS_base: _$vue.DefineComponent<ScrollbarProps, {
|
|
/** @description scrollbar wrap ref */wrapRef: _$vue.Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>; /** @description update scrollbar state manually */
|
|
update: () => void; /** @description scrolls to a particular set of coordinates */
|
|
scrollTo: typeof scrollTo; /** @description set distance to scroll top */
|
|
setScrollTop: (value: number) => void; /** @description set distance to scroll left */
|
|
setScrollLeft: (value: number) => void; /** @description handle scroll event */
|
|
handleScroll: () => void;
|
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
scroll: (args_0: {
|
|
scrollTop: number;
|
|
scrollLeft: number;
|
|
}) => void;
|
|
"end-reached": (direction: ScrollbarDirection) => void;
|
|
}, string, _$vue.PublicProps, Readonly<ScrollbarProps> & Readonly<{
|
|
onScroll?: ((args_0: {
|
|
scrollTop: number;
|
|
scrollLeft: number;
|
|
}) => any) | undefined;
|
|
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
}>, {
|
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
tabindex: number | string;
|
|
height: number | string;
|
|
maxHeight: number | string;
|
|
distance: number;
|
|
wrapStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
wrapClass: string | string[];
|
|
viewClass: string | string[];
|
|
viewStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
minSize: number;
|
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
declare const _default: typeof __VLS_export;
|
|
type __VLS_WithSlots<T, S> = T & {
|
|
new (): {
|
|
$slots: S;
|
|
};
|
|
};
|
|
//#endregion
|
|
export { _default as default }; |