VirtualScroller: add missing method typings
parent
217ff51323
commit
edc1f49178
|
@ -15,8 +15,21 @@ interface VirtualScrollerProps {
|
||||||
class?: string;
|
class?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Range {
|
||||||
|
first: number;
|
||||||
|
last: number;
|
||||||
|
viewport: {
|
||||||
|
first: number;
|
||||||
|
last: number;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
declare class VirtualScroller {
|
declare class VirtualScroller {
|
||||||
$props: VirtualScrollerProps;
|
$props: VirtualScrollerProps;
|
||||||
|
scrollTo(options?: ScrollToOptions): void;
|
||||||
|
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
||||||
|
scrollInView(index: number, to: "to-start" | "to-end", behavior: ScrollBehavior): void;
|
||||||
|
getRenderedRange(): Range
|
||||||
$emit(eventName: 'update:numToleratedItems', value: number): this;
|
$emit(eventName: 'update:numToleratedItems', value: number): this;
|
||||||
$emit(eventName: 'scroll-index-change', value: { first: number, last: number }): this;
|
$emit(eventName: 'scroll-index-change', value: { first: number, last: number }): this;
|
||||||
$emit(eventName: 'lazy-load', value: { first: number, last: number }): this;
|
$emit(eventName: 'lazy-load', value: { first: number, last: number }): this;
|
||||||
|
|
Loading…
Reference in New Issue