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] 2.8.3 样式渲染有问题 #8955

Open
liuzhaowei55 opened this issue Jan 7, 2025 · 5 comments
Open

🐛[BUG] 2.8.3 样式渲染有问题 #8955

liuzhaowei55 opened this issue Jan 7, 2025 · 5 comments

Comments

@liuzhaowei55
Copy link

liuzhaowei55 commented Jan 7, 2025

提问前先看看:

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

🐛 bug 描述

2.8.2 -> 2.8.3 之后样式全掉了,2.8.2 显示正常

image

📷 复现步骤

使用了

<StyleProvider layer>
</StyleProvider>

🏞 期望结果

💻 复现代码

https://stackblitz.com/edit/vitejs-vite-kkfjszwu?file=src%2FApp.jsx

© 版本信息

  • ProComponents 版本:2.8.3

🚑 其他信息

@liuzhaowei55
Copy link
Author

@chenshuai2144

@Wxh16144
Copy link
Member

2.8.3 我倒是改过 layer 有关代码 PR #8904

用你的复现代码,安装 2.8.2 也是有问题的。 所以不确定是不是和我那个改动有关。

@liuzhaowei55
Copy link
Author

我需要重新调整下这段复现代码,目前是受项目本身 index.css 影响,展示不正常,我重新调整一下。

@liuzhaowei55
Copy link
Author

liuzhaowei55 commented Jan 10, 2025

https://stackblitz.com/edit/vitejs-vite-kkfjszwu?file=src/App.jsx

对代码做了一个调整,模拟我的真实业务代码引入了 Tailwind,以及修改了代码嵌套。

代码嵌套在 <PageContainer /> 中可以复现问题

@Wxh16144
Copy link
Member

Wxh16144 commented Jan 10, 2025

感谢补充,我还没接触过 tailwind css,我去学习一下 顺便看看这个问题。

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

2 participants