vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
65 lines (64 loc) • 2.66 kB
TypeScript
import { Props } from './types';
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
};
refs: {
scrollbarEl: HTMLDivElement;
scrollWrapEl: HTMLDivElement;
barEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').BarProps> & Readonly<{}>, {
handleScroll: (wrap: HTMLElement) => void;
update: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('./types').BarProps> & Readonly<{}>, {
handleScroll: (wrap: HTMLElement) => void;
update: () => void;
}, {}, {}, {}, {}> | null;
};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<Props, {
/**
* 更新滚动条
*/
update: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
scroll: (...args: any[]) => void;
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
onScroll?: ((...args: any[]) => any) | undefined;
}>, {
minSize: number;
always: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
scrollbarEl: HTMLDivElement;
scrollWrapEl: HTMLDivElement;
barEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').BarProps> & Readonly<{}>, {
handleScroll: (wrap: HTMLElement) => void;
update: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('./types').BarProps> & Readonly<{}>, {
handleScroll: (wrap: HTMLElement) => void;
update: () => void;
}, {}, {}, {}, {}> | null;
}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};