view-design / ViewUI

A high quality UI Toolkit built on Vue.js 2.0
https://www.iviewui.com/
Other
2.65k stars 797 forks source link

[Bug Report]view design v4.x版本page分页问题 #1094

Open julien-joe opened 2 years ago

julien-joe commented 2 years ago

Environment

macos/chrome/vue 2.x

Reproduction link

https://run.iviewui.com/yMsMLN5R

Steps to reproduce

比如 total 数30条,pageSize 10条,设置 current = 4 就会出现,就会出现上面截图情况,这个是错误的,总共只有3页,组件应该将 current 设置成3 才是对的,分页组件应该以 total 、pageSize来实现

What is expected?

page初始化结果如果 current > total/pageSize ,应用total/pageSize 设置最后分页结果。

What is actually happening?

还是采用了 current