需要将新参数 placeTo(或类似参数)添加到 scrollToItem 方法中,该方法可以采用三个可能的值:“top”(默认值)、“bottom”或“center”。 因此,方法签名应如下所示: scrollToItem (index, placeTo = 'top') 下一个内部方法也是如此:( scrollToPosition (position, plac
zoosewu/vue-virtual-scrollerPublic forked fromAkryum/vue-virtual-scroller NotificationsYou must be signed in to change notification settings Fork0 Star0 Code Pull requests Actions Projects Security Insights Additional navigation options Files develop ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
y: ComputedRef<number> scroll position;virtualContainerHeight: ComputedRef<number> height of the virtual container;startIndex: ComputedRef<number> index of the first virtual item;endIndex: ComputedRef<number> index of the last virtual item;
{item:unknown;position:number;nr:{id:number;index:number;key:string;type:unknown;used:boolean;};}>;getScroll():{start:number;end:number};scrollToItem(index:number):void;scrollToPosition(position:number);}exportclassDynamicScrollerextendsRecycleScroller{minItemSize:number|string;vscrollData:{active:...
scrollToPosition: function scrollToPosition(position) { if (this.direction === 'vertical') { this.$el.scrollTop = position; } else { this.$el.scrollLeft = position; } }, I do not know this code base that well (only started recently using it), It looks like scrollToPosition is not...
- `itemSize` (default: `null`): display height (or width in horizontal mode) of the items in pixels used to calculate the scroll size and position. If it is set to `null` (the default value), it will use [variable size mode](#variable-size-mode). 182 + - `gridItems`: display...