el-table-infinite-scroll
Version:
Infinite scroll for el-table.
17 lines (16 loc) • 549 B
TypeScript
import type { ObjectDirective, Plugin } from 'vue';
export type InfiniteScrollUpOptions = {
load: () => void | Promise<void>;
disabled?: boolean;
distance?: number;
delay?: number;
immediate?: boolean;
};
declare const InfiniteScrollUp: ObjectDirective<HTMLElement & {
_InfiniteScrollStore: {
handleScroll: () => void;
options: InfiniteScrollUpOptions;
};
}, InfiniteScrollUpOptions> & Plugin;
export default InfiniteScrollUp;
export declare function throttle(func: () => void, wait: number): () => void;