Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #10951 修复 InputTable 在 配置 perPage 开启分页场景时,底部新增按钮展示异常 #10967

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

jinmingpang
Copy link
Contributor

What

修复 #10951 , InputTable 在配置 perPage 开启分页时,新增按钮展示异常问题。

  1. 配置 perPage, maxLength 时 ,且数量超出限制时,新增按钮未正常隐藏。
  2. 配置 perPage, addable 时,在 static 静态模式下,新增按钮仍然展示。

Why

问题1: maxLength 只取了当页的 items 数量对比, 应该使用全量数据对比。
问题2: 底部新增按钮限制条件,在有分页器时,就只有 addable && showFooterAddBtn !== false, 与不存在 分页器的时候,表现不一样。按理说,无论分页不分页,底部新增按钮,展示逻辑应该一样。

How

调整下底部按钮展示逻辑,保持与是否分页无关。

@github-actions github-actions bot added the fix label Sep 25, 2024
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@hsm-lv hsm-lv merged commit a751ede into baidu:master Oct 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants