Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table]表格虚拟滚动性能问题 #4300

Open
zhangxing406 opened this issue Mar 24, 2023 · 0 comments
Open

[Table]表格虚拟滚动性能问题 #4300

zhangxing406 opened this issue Mar 24, 2023 · 0 comments
Assignees
Labels
improvement improve some features

Comments

@zhangxing406
Copy link

zhangxing406 commented Mar 24, 2023

Component

Table

Steps to reproduce

当使用虚拟滚动时,表格翻页不会重置滚动条,导致如果第一页有100条数据,用户滚动到90,但是第二页只有10条数据,滚动条还在下面,滚不上去。

如果使用 onBodyScroll = (start) => {
this.setState({
scrollToRow: start
})
}这种方式设置滚动位置,就会出现当用户一直滚动的时候,组件一直render的问题,性能问题显而易见。

希望能提供一个方法,让滚动条回到相应的位置,且不需要一直监听滚动事件。

@YunMeng99 YunMeng99 added the improvement improve some features label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement improve some features
Projects
None yet
Development

No branches or pull requests

3 participants