fix: #10951 修复 InputTable 在 配置 perPage 开启分页场景时,底部新增按钮展示异常 #10967
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
修复 #10951 ,
InputTable
在配置perPage
开启分页时,新增按钮展示异常问题。perPage
,maxLength
时 ,且数量超出限制时,新增按钮未正常隐藏。perPage
,addable
时,在 static 静态模式下,新增按钮仍然展示。Why
问题1:
maxLength
只取了当页的items
数量对比, 应该使用全量数据对比。问题2: 底部新增按钮限制条件,在有分页器时,就只有
addable && showFooterAddBtn !== false
, 与不存在 分页器的时候,表现不一样。按理说,无论分页不分页,底部新增按钮,展示逻辑应该一样。How
调整下底部按钮展示逻辑,保持与是否分页无关。