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 摘要。