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

keep-alive缓存页面时,DataTable显示有些问题 #2183

Closed
Zzard10 opened this issue Jan 14, 2022 · 3 comments
Closed

keep-alive缓存页面时,DataTable显示有些问题 #2183

Zzard10 opened this issue Jan 14, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Zzard10
Copy link

Zzard10 commented Jan 14, 2022

This function solves the problem (这个功能解决的问题)

使用keep-alive缓存页面后,再次进入包含有DataTable组件页面时,DataTable会显示空白,必须再次滚动才能显示数据,而且滚动位置也被重新滚动到顶部了

Expected API (期望的 API)

期望能记录DataTable的最后滚动位置,重新切换回页面时,能复原到最后滚动位置

@github-actions github-actions bot added the feature request New feature or request label Jan 14, 2022
@07akioni
Copy link
Collaborator

复现

@Zzard10
Copy link
Author

Zzard10 commented Jan 15, 2022

@Zzard10
Copy link
Author

Zzard10 commented Jan 15, 2022

GIF

@07akioni 07akioni added bug Something isn't working and removed feature request New feature or request need reproduction labels Jan 16, 2022
jaulz pushed a commit to jaulz/naive-ui that referenced this issue Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants