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

关于分页和信息实时更新的一些想法记录 #53

Open
codinfox opened this issue May 20, 2015 · 1 comment
Open

关于分页和信息实时更新的一些想法记录 #53

codinfox opened this issue May 20, 2015 · 1 comment
Milestone

Comments

@codinfox
Copy link
Member

前提假设:添加分页,保留实时信息更新的功能

分页

  1. 在每页页底显示分页的条,只显示上一页、下一页、首页(尾页应该没人会关心吧,就不显示了,显示的话还需要多进行一个查询操作,麻烦)
  2. 翻页操作不会修改URL,页码作为state保存在内部,因为每一页的内容会变动,在URL当中体现页码也没有意义

实时信息更新

因为在分页的条件下如果不能一次性把数据全部load到本地并且在本地更新,很难实现实时信息的插入。所以,如果实时更新的内容在显示页的当页,可以进行更新,包括重新排序等等。如果不在这一页当中,在顶部提示有新的信息,鼠标悬置显示新信息的内容,点击界面刷新,跳回首页。

@amio
Copy link
Contributor

amio commented May 21, 2015

👍

@amio amio modified the milestone: 远期规划 May 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants