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

子应用中使用CSS Custom Highlight API,嵌入父应用后高亮效果不生效 #1398

Open
VincientBlue opened this issue Oct 9, 2024 · 0 comments

Comments

@VincientBlue
Copy link

问题描述

问题的具体描述

复现步骤

image
子应用中使用CSS.highlights实现关键字高亮的效果
2.
image
使用微前端嵌入子应用后关键字高亮就没了
3.
image
看了下父应用中伪元素样式是有的,但不知道为什么没有生效

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。

https://github.com/VincientBlue/vue-micro-app
https://github.com/VincientBlue/child-app

环境信息

  • micro-app版本:1.0.0-rc.12
  • 主应用前端框架&版本:vue3+vite
  • 子应用前端框架&版本:vue3+vite
  • 构建工具&版本:

实际项目中框架和版本有差异,不过均能复现

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