baidu / baidu/amis

PaginationWrapper 是否可以可支持reload/restPage或者setPage之类的接口

Open
#10,482 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

我原始需求是使用service+PaginationWrapper +table从后台一次性读取并在前端显示,同时希望前端能进行全文过滤没搞定
*改用Pagination手工+js可以就是麻烦一些

于是改为service去后台进行过滤“全部”数据后返回新的,但是如果当时前端的分页数字不是1,比如4时,返回后可以正常更新,但是页码不会回到1,结果就是第4页没数据要手工点击第一页才行

#### 预期的解决方案:
是否PaginationWrapper 可支持reload/restPage或者setPage之类的接口

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating PaginationWrapper and tracing how its current page changes when filtered data is reloaded. Compare the existing Pagination behavior described in the issue, then define completion as a supported way to reload or reset the page so filtered results return to page 1 without manual interaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.