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

乾坤使用{ sandbox : { experimentalStyleIsolation: true } }方式,vue组件内scoped属性样式没有加上特定的选择器来限定,全局样式有加 #3007

Open
Woomay opened this issue Sep 9, 2024 · 2 comments

Comments

@Woomay
Copy link

Woomay commented Sep 9, 2024

What happens?

image vue组件内的scoped属性样式,没有加上特殊前缀隔离。全局的样式及不加scoped属性的样式,是有加上隔离的。

子项目是使用vite。现在测试发现是因为使用vite的原因,导致除全局样式文件外,其他动态加载的js/css都不会被qiankun劫持,导致没有被加上特定前缀

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue.

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • qiankun Version: 2.10.16
  • Platform Version:
  • Browser Version:
@Houliang0239
Copy link

有什么解决办法吗,目前我们不得不把整个子应用都增加类名前缀

@Woomay
Copy link
Author

Woomay commented Nov 18, 2024

目前

没有。我们现在的方案也是子应用增加特殊类名前缀

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