feat: 分页组件支持 pageSize 浏览器缓存

- 为 Pagination 组件添加 cacheKey 属性,支持将 pageSize 缓存到 localStorage
- 组件挂载时自动恢复缓存的 pageSize 设置
- 为各页面的分页组件配置独立的缓存键
- 仅在显示 pageSize 选择器时启用缓存恢复

Closes #105

Co-Authored-By: AAEE86 <[email protected]>
This commit is contained in:
fawney19
2026-01-17 20:21:03 +08:00
co-authored by AAEE86
parent c71027c466
commit 8053cbd854
11 changed files with 32 additions and 1 deletions
@@ -702,6 +702,7 @@ onBeforeUnmount(() => {
:current="currentPage"
:total="affinityList.length"
:page-size="pageSize"
cache-key="cache-monitoring-page-size"
@update:current="currentPage = $event; handlePageChange()"
@update:page-size="pageSize = $event"
/>