-
-
Notifications
You must be signed in to change notification settings - Fork 971
Open
Description
Describe the bug
使用RecycleScroller组件绑定实例,通过实例再onMounted时调用scrollToItem实现默认到滚动到最后一个,但是未能生效,后续我改成:
模板结构:
watch(
[() => allShowDynameicPropertyList.value.length, dynameicPropertyPanelRef],
async ([listLength, scrollerInstance], [_oldListLength]) => {
if (listLength > 0 && scrollerInstance) {
await nextTick()
scrollerInstance.scrollToItem(allShowDynameicPropertyList.value.length -1)
}
},
{ immediate: true }
)依然不行,是配置还有问题吗
Reproduction
无
System Info
vue-virtual-scroller版本2.0.0-beta.8Used Package Manager
pnpm
Validations
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
No labels