Skip to content

Conversation

@RSS1102
Copy link
Collaborator

@RSS1102 RSS1102 commented Nov 3, 2025

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

💡 需求背景和解决方案

使用方法:

const pagination = ref({
  pageSize: 5,
  current: 1,
  total,
  onPageSizeChange: (pageSize) => {
    console.log('pageSize', pageSize);
    pagination.value.pageSize = pageSize;
    pagination.value.current = 1;
  },
  onCurrentChange: (current) => {
    console.log('current', current);
    pagination.value.current = current;
  },
});

主要修改: 当用户传递的 current < newPageCount 的时候说明,用户设置的 current 是符合预期的,不应该再强制设置为最后一页,其他逻辑保持不变。 这里在用户主动/被动修改 current 时添加了 onChange 事件的触发,可能要考虑 #3483

📝 更新日志

  • 本条 PR 不需要纳入 Changelog

tdesign-vue-next

  • fix(Table): 修改 pageSize 时不能同步修改当前页的问题

@tdesign-vue-next/chat

@tdesign-vue-next/auto-import-resolver

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

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

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

@tdesign-bot
Copy link
Collaborator

tdesign-bot commented Nov 3, 2025

TDesign Component Site Preview Open

Component Preview
tdesign-vue-next 完成
@tdesign-vue-next/chat 完成

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 3, 2025

tdesign-vue-next-demo

npm i https://pkg.pr.new/Tencent/tdesign-vue-next/@tdesign-vue-next/auto-import-resolver@6127
npm i https://pkg.pr.new/Tencent/tdesign-vue-next@6127
npm i https://pkg.pr.new/Tencent/tdesign-vue-next/@tdesign-vue-next/chat@6127

commit: 2f2dc27

@RSS1102 RSS1102 force-pushed the rss1102/fix/table-pagination branch from 63de960 to bae1223 Compare November 4, 2025 19:31
@RSS1102 RSS1102 force-pushed the rss1102/fix/table-pagination branch from bae1223 to 4086c00 Compare November 4, 2025 20:07
@RSS1102 RSS1102 marked this pull request as ready for review November 5, 2025 06:41
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.

3 participants