Skip to content

feat: 重构分页系统,支持多页显示和动态锚定#1

Merged
Gaubee merged 3 commits intomainfrom
feat/pagination-refactor
Dec 21, 2025
Merged

feat: 重构分页系统,支持多页显示和动态锚定#1
Gaubee merged 3 commits intomainfrom
feat/pagination-refactor

Conversation

@Gaubee
Copy link
Copy Markdown
Collaborator

@Gaubee Gaubee commented Dec 21, 2025

Summary

  • 新增 multi-page-pagination 组件,支持同时显示多页数据
  • URL 参数格式:pages=anchor,count(如 -1,2 表示动态锚定最后一页显示2页)
  • Pin/Unpin 切换动态/静态锚定模式
  • 新请求基于时间戳自动高亮 3 秒
  • 移除旧的 currentPage/setCurrentPage API(破坏性变更)

功能特性

模式 URL 示例 说明
动态锚定 ?pages=-1,2 始终显示最后 2 页,新请求自动滚动
静态锚定 ?pages=4,2 锚定第 4 页,显示 2 页

Test plan

  • 验证默认显示最后两页
  • 验证 Pin/Unpin 切换功能
  • 验证新请求高亮动画
  • 验证翻页导航

🤖 Generated with Claude Code

Gaubee and others added 3 commits December 21, 2025 10:17
- 新增 multi-page-pagination 组件,支持同时显示多页数据
- URL 参数格式:pages=anchor,count(如 -1,2 表示动态锚定最后一页显示2页)
- Pin/Unpin 切换动态/静态锚定模式
- 新请求基于时间戳自动高亮 3 秒
- 移除旧的 currentPage/setCurrentPage API(破坏性变更)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
@Gaubee Gaubee merged commit 7271afa into main Dec 21, 2025
@Gaubee Gaubee deleted the feat/pagination-refactor branch December 21, 2025 09:08
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

Successfully merging this pull request may close these issues.

1 participant