Skip to content

After antd-table deletes the data of the last page, the current page number of the pagenation will be updated, but the change event of the table is not triggered #4718

@PanClear

Description

@PanClear
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.8

Environment

Vue version

Reproduction link

https://github.com/vueComponent/ant-design-vue/issues/new/choose

Steps to reproduce

1、使用a-table组件,通过http请求获取某一页的数据,列表数据大于一页
2、翻到最后一页(第二页),http请求删除最后一页的数据,然后再次获取该页的数据

What is expected?

删除数据后更新分页配置的total,分页器的页码更新,自动往前翻了一页,此时应该触发绑定的change事件,那么我会按新的页码更新分页信息并查询列表数据

What is actually happening?

删除数据后更新分页配置的total,分页器的页码更新,自动往前翻了一页,但是绑定的change事件并没有触发,分页器看起来当前页是变成了第一页。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions