Refactor #1687
parent
843a7432a2
commit
3b392d6a24
|
@ -15,7 +15,7 @@ interface VirtualScrollerProps {
|
||||||
class?: string;
|
class?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Range {
|
interface VirtualScrollerRangeMethodInterface {
|
||||||
first: number;
|
first: number;
|
||||||
last: number;
|
last: number;
|
||||||
viewport: {
|
viewport: {
|
||||||
|
@ -29,7 +29,7 @@ declare class VirtualScroller {
|
||||||
scrollTo(options?: ScrollToOptions): void;
|
scrollTo(options?: ScrollToOptions): void;
|
||||||
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
||||||
scrollInView(index: number, to: "to-start" | "to-end", behavior: ScrollBehavior): void;
|
scrollInView(index: number, to: "to-start" | "to-end", behavior: ScrollBehavior): void;
|
||||||
getRenderedRange(): Range;
|
getRenderedRange(): VirtualScrollerRangeMethodInterface;
|
||||||
$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