lobehub / lobe-ui

🍭 Lobe UI - an open-source UI component library for building AIGC web apps

Home Page:https://ui.lobehub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] 怎么在shadow dom中使用?

bearguo opened this issue · comments

🧐 问题描述 | Proposed Solution

我需要在shadow dom中使用这套组件库,但是组件库默认把style注入到了根节点中,导致样式丢失
antd 提供了解决方案,但是在这个组件库中并没有生效
https://ant-design.antgroup.com/docs/react/compatible-style-cn#shadow-dom-%E5%9C%BA%E6%99%AF

📝 补充信息 | Additional Information

No response

👀 @bearguo
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。