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

fix(pagination): when total is 0 and pageSize change, current value is 0 #2937

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

betavs
Copy link
Contributor

@betavs betavs commented Nov 29, 2023

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

Fix #2932

💡 需求背景和解决方案

📝 更新日志

  • fix(Pagination): 修复当 total 为 0 并且 pageSize 改变时, current 值为 0 的问题

  • 本条 PR 不需要纳入 Changelog

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

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

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

Copy link
Contributor

完成

@uyarn uyarn merged commit 5ff78fc into Tencent:develop Nov 29, 2023
5 checks passed
@github-actions github-actions bot mentioned this pull request Dec 7, 2023
16 tasks
uyarn added a commit that referenced this pull request Dec 15, 2023
* refactor: radio/checkbox选中判断改回正则 (#2927)

* fix(table): row-edit event not trigger (#2934)

* fix(statistic): fix with missing default precision (#2933)

* fix(radio): 选项内容变化后样式问题修复 (#2936)

fix #2930

* feat: cascader value-display (#2938)

* feat: 增加 cascader 对 valueDisplay 的支持

* test: update snap

* fix(pagination): when total is 0 and pageSize change, current value is 0 (#2937)

* fix(tree): tree 节点禁用状态逻辑改进 (#2935)

* test(tree): 完善 tree 组件的禁用示例

* fix(tree): tree 组件, 禁用状态过滤函数不再仅生效于UI层,将传递到模型侧参与状态计算

* fix(tree): tree 组件完善禁用逻辑

* fix(tree): tree 组件添加 refresh 方法刷新节点状态

* test(tree): tree 组件,完善 disabled 相关示例

* fix(tree): tree 组件,完善半选状态下的状态切换

* test(tree): tree 组件,完善操作示例,提供 disabled 状态与其他状态的整合演示

* chore(tree): tree 组件,更新 common 依赖

* test(tree): tree 组件,添加禁用状态相关测试

* chore(tree): tree 组件,更新 common 依赖,补充文档

* test(tree): tree 组件,update snapshot

* fix(auto-complete): using lodash escapeRegExp transform keyword text (#2943)

* fix(auto-complete): using lodash escapeRegExp transform keyword text

* docs(auto-complete): update auto-complete custom filter example

* chore: update contributing (#2950)

* chore: update contributing

* chore: update docs

* fix(tree): tree 组件, value, active, expanded 属性, 支持数组操作触发视图变更 (#2951)

* fix(tree): tree 组件, value, active, expanded 属性, 支持数组操作触发视图变更

* refactor(tree): tree 组件,改进属性监听代码结构

* fix(tree): tree 组件,解决 value 传递 undefined,可能导致视图操作报错的问题

* ci: add workflow for issue label (#2953)

* fix(table): pagination (#2954)

* fix(image-viewer): 修改键盘事件绑定对象 (#2958)

* feat(Table): fix some pagination problems (#2962)

* feat(table): pagination

* feat: code save

* fix(table): pagination

* fix: row select and drag sort

* docs(table): demo

* feat(menu): close menu after clicking (#2963)

* feat(tabs): scroll to better position when active tab is in middle (#2964)

* chore: release 1.8.1 (#2965)

* chore: release 1.8.1

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat(upload): uploadPastedFiles (#2966)

* fix(tree): the height attribute does not work (#2968)

* fix(tree): the height attribute does not work

* test(tree): the height attribute does not work

* chore: update publish frequency descriptions (#2969)

* chore: update Publish.md

* chore: fix table test

* chore: update PUBLISH.md

* fix(image-viewer): 滚轮缩放符合操作直觉 (#2974)

自然滚动与标准滚动对图片放大缩小的操作均符合直觉

#2825

* fix(date-range-picker): 修复12月时选择同一个月内的日期后,第一次打开面板左右月份一样的问题 (#2972)

* fix(drawer): unable to close by click on escape (#2967)

* chore: fix ssr error (#2985)

* chore: release 1.8.2 (#2986)

* chore: release 1.8.2

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: release 1.8.3 (#2988)

* chore: release 1.8.3

* chore: release 1.8.3

* chore: release 1.8.3

* chore: release 1.8.3-naruto

---------

Co-authored-by: liweijie0812 <674416404@qq.com>
Co-authored-by: sheepluo <yaoyanhuoyi@qq.com>
Co-authored-by: 李江辰 <SpaceCode@foxmail.com>
Co-authored-by: hkaikai <617760820@qq.com>
Co-authored-by: PY <pengyue970715@gmail.com>
Co-authored-by: betavs <34408516+betavs@users.noreply.github.com>
Co-authored-by: TabSpace <pillar0514@163.com>
Co-authored-by: kang <kang95630@gmail.com>
Co-authored-by: Y <anllyyao@gmail.com>
Co-authored-by: sinbadmaster <40019023+sinbadmaster@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lyan-u <46185702+Lyan-u@users.noreply.github.com>
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.

[Table] 表格传入分页数据中如果pagination.total为0视图上切换每页条数时控制台报错
2 participants