n-pagination 分页问题
Lin-w-b opened this issue · comments
Describe the bug
当删除最后一页的最后一条数据时候,pagination没有自动跳到第一页
当在非第一页查询时候,非第一页没有数据,但是第一页有数据,没有自动跳到第一页
可以参考el-plus,会自动跳
Steps to reproduce
当删除最后一页的最后一条数据时候,pagination没有自动跳到第一页
当在非第一页查询时候,非第一页没有数据,但是第一页有数据,没有自动跳到第一页
Link to minimal reproduction
none
System Info
naive-ui 2.37.0
vue 3.2
Used Package Manager
npm
Validations
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
提供个 element-plus
效果链接
你可以用一下element-plus的项目,在上面删除最后一页的最后一条数据时候,pagination会自动跳到第一页
我之前都是手动控制的
直接自己封装个hooks就完事了