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

🐛[BUG]ProLayout 首屏 padding 抖动 #8712

Open
linxianxi opened this issue Sep 9, 2024 · 0 comments
Open

🐛[BUG]ProLayout 首屏 padding 抖动 #8712

linxianxi opened this issue Sep 9, 2024 · 0 comments

Comments

@linxianxi
Copy link
Contributor

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

页面刚加载 ProLayout 是有 padding 的,然后一瞬间 padding 又没了,导致页面布局会抖动

📷 复现步骤

🏞 期望结果

💻 复现代码

看源码,是在这个 class 上设置 padding 为 0 的。因为 hasPageContainer 一开始是为 0 的,所以一开始有 padding,而后又大于 0 了,所以立马 padding 就没了。
image

image

没有再研究下去这个多标签页有什么关系了

© 版本信息

  • ProComponents 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant