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

feat: usePagination adds default parameter defaultPage #1777

Merged
merged 7 commits into from
Aug 1, 2022

Conversation

lmsccc
Copy link
Contributor

@lmsccc lmsccc commented Jul 23, 2022

[English Template / 英文模板]

🤔 这个变动的性质是?

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他改动(是关于什么的改动?)

🔗 相关 Issue

💡 需求背景和解决方案

有些场景是在第一次加载的时候需要加载指定的页,比如,我从点击表格中某一项的查看详情,返回后,希望加载的table是点进详情页之前的页数,此时需要usePagination提供首次加载的默认页数参数

📝 更新日志

语言 更新描述
🇺🇸 英文 usePagination adds default parameter defaultCurrent
🇨🇳 中文 usePagination默认参数增加defaultCurrent

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@CLAassistant
Copy link

CLAassistant commented Jul 23, 2022

CLA assistant check
All committers have signed the CLA.

@lmsccc lmsccc changed the title feat: usePagination add deafultPage feat: usePagination adds default parameter defaultPage Jul 23, 2022
@hchlq
Copy link
Collaborator

hchlq commented Jul 24, 2022

感觉可行,加个测试哈

@lmsccc
Copy link
Contributor Author

lmsccc commented Jul 24, 2022

感觉可行,加个测试哈

用例已添加

@lmsccc
Copy link
Contributor Author

lmsccc commented Aug 1, 2022

请问下这个PR还有什么问题吗?大概什么时候可以合并呢?

@brickspert
Copy link
Collaborator

请问下这个PR还有什么问题吗?大概什么时候可以合并呢?

CI 没过,需要看一下

@lmsccc
Copy link
Contributor Author

lmsccc commented Aug 1, 2022

请问下这个PR还有什么问题吗?大概什么时候可以合并呢?

CI 没过,需要看一下

用例有个地方写错了,已修改

@brickspert brickspert merged commit 975dfb4 into alibaba:master Aug 1, 2022
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.

4 participants