Akryum / Akryum/vue-virtual-scroller

Support scrollIntoItem by visible view section

未关闭
#779 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature-request
主要语言
TypeScript
星标
10.8k
派生
973
PR 合并指标
30 天内没有已合并 PR

描述

### Clear and concise description of the problem

I'm trying to do scrollbar control like spotlight in MacOS.
![scroll-demo](https://user-images.githubusercontent.com/9990676/210050550-21b7f110-976d-4c37-a471-1449fe6ca015.gif)

As can be seen from the gif, the scrollbar only changed when the view section is not be able to render the rest of items which actually in the virtual scroller.

### Suggested solution

I did a simple demo and it works for me on my local laptop so i forked this project into my owns.
My idea is extending `RecycleScroller`, make the scrollIntoItem functional support and expose the method for developer who have same scenarios. And also I think it is very general for many scenes.

### Alternative

_No response_

### Additional context

_No response_

### Validations

- [X] Read the [docs](https://github.com/Akryum/vue-virtual-scroller/blob/master/packages/vue-virtual-scroller/README.md).
- [X] Check that there isn't [already an issue](https://github.com/Akryum/vue-virtual-scroller/issues) that reports the same bug to avoid creating a duplicate.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。