ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

【pagination组件】showSizeChanger默认行为太隐蔽,容易导致出现bug

Open RunbinPeng opened this issue 1 year ago • 1 comments
trafficstars

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

Version

4.2.3

Environment

vue2,vue3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 固定page size
  2. 当total大于50时出现size changer,
  3. 切换size changer页面大小, 会导致无法切换。由于是需要固定page size的,所以预期内不该有size changer这个东西!

What is expected?

取消pagination组件的showSizeChanger默认行为(当 total 大于 50 时默认为 true)

What is actually happening?

当业务方需要固定pageSize时,showSizeChanger的默认行为(当 total 大于 50 时默认为 true)会导致出现bug,该行为太过隐蔽很难自测发现。在自测时若数量没有验到50条以上,根本发现不了会出现size changer这东西。

RunbinPeng avatar Jun 28 '24 02:06 RunbinPeng

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 27 '24 02:08 github-actions[bot]