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(table): 修复分页器被遮挡的问题 (#3040) #3041

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

zyprepare
Copy link
Collaborator

closed #3040

问题原因:

  1. 分页器的 pageSize 下拉选项弹框的 portal 在组件内部,就导致组件外部有定位的元素将它覆盖了
  2. 之前为了解决浏览器原生全屏模式下,分页器中的 pageSize 下拉配置项显示不出来问题,故将弹窗的挂载容器设置在分页器组件中,这样可以保证在全屏模式下也能正常显示。

解决方案:

  1. Pagination 组件的 pageSize 下拉选项弹框支持配置 portal 是在 body 中,还是在组件中,默认在 body 中
  2. 使用表格的时候根据情况来配置 Pagination 组件的 pageSize 下拉选项弹框的 portal

@zyprepare zyprepare merged commit 8aa6069 into master Nov 11, 2024
1 check passed
@zyprepare zyprepare deleted the hotfix/table/3040 branch November 11, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table 分页器被遮挡
1 participant