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反馈] StyleProvider组件只能在第一次使用时注入样式,后续使用均会丢失样式 #6912

Closed
1 task done
xiaoqiang1999 opened this issue Aug 29, 2023 · 4 comments
Labels

Comments

@xiaoqiang1999
Copy link

xiaoqiang1999 commented Aug 29, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.1

Environment

Windows11 / Chrome & Edge / Vue 3.3.4

Reproduction link

Edit on CodeSandbox

Steps to reproduce

使用ShadowDOM隔离CSS样式,多次使用StyleProvider指定container,只会在第一次使用StyleProvider时有样式,其余均丢失样式。
注:Antd的React版本无此问题,会正常的向不同的container中注入样式。

详见CodeSandbox:https://codesandbox.io/p/sandbox/confident-fog-f94y8w

What is expected?

多个StyleProvider的container分别拥有自己的样式

What is actually happening?

使用ShadowDOM隔离CSS样式,多次使用StyleProvider指定container,只会在第一次使用StyleProvider时有样式,其余均丢失样式。

@xiaoqiang1999
Copy link
Author

image

@robertyclin
Copy link

4版本使用了css in js,怎么设置px2rem的撒

@Time-coding
Copy link

可以支持pwa吗

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants