[Feature] 强力建议原生支持固定滚动条
Open
@fangsmile is already working on this.
Since Oct 26, 2024.
feature
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
What problem does this feature solve?
当vtable用于信息流场景的时候,随时随地都会有大量数据的插入,然后vtable会应用sort、filter等(如果有的话),那么对于可视区域现实的数据就可能会自动滚定,因为新的数据可能会添加到前面(按时间倒序排序或insert到最前面的时候),这样就会影响查看的过程。所以建议vtavle可以原生底层支持固定滚动条(虽然用户可以通过setScrollTop等方式实现,但是我试了之后。始终感觉不稳定,而且体验不好)。滚动条随着内容的增多,滚动条的位置会自动改变,但可视区域始终不变,除非是在可视区域中间插入新数据,才会导致可视区域的对应数据的后移
What does the proposed API look like?
可以通过字段提供一个选项
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.