vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
44 lines (43 loc) • 1.24 kB
TypeScript
import { Props } from './types';
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
default?(_: {
item: any;
index: number;
}): any;
};
refs: {
virtualListEl: HTMLDivElement;
};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<Props, {
/**
* 滚动到顶部
*/
scrollToTop: () => void;
/**
* 滚动到列表底部
*/
scrollToBottom: () => void;
/**
* 滚动到指定索引
*/
scrollToIndex: (index: number) => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
height: number;
list: any[];
itemSize: number;
overscan: number;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
virtualListEl: HTMLDivElement;
}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};