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

在shadowRoot中,通过StyleProvider重新指定了样式挂载的dom,此时按钮添加loading状态,loading 无动画 #6914

Closed
1 task done
Xdy1579883916 opened this issue Aug 30, 2023 · 4 comments

Comments

@Xdy1579883916
Copy link

Xdy1579883916 commented Aug 30, 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

详见CodeSandbox

What is expected?

应该呈现loading状态

What is actually happening?

loading了,但是没有动起来

image

@xiaoqiang1999
Copy link

xiaoqiang1999 commented Sep 4, 2023

StyleProvider问题不少啊,还有我这个问题: #6912
也是ShadowDOM中出的问题

@xiaoqiang1999
Copy link

你这个问题我提Issue之前看到过的,我的CodeSandbox案例就是拿你的改的哈哈哈。

为了支持shadow dom,我经过多方评估,目前还是ElementPlus支持的最好(当然还是要改动一下源码的,改动不多) 感兴趣可以了解一下方案

没办法,项目已经用Element+做了,再临时换UI也是需要很大的勇气的,改动特别特别大。

我用ElementPlus时,发现样式除了要在shadowDOM中引入以外,还要在全局再引入一次,否则还是缺少部分样式……这个问题怎么解决的

@Xdy1579883916
Copy link
Author

来晚了,或许你说的缺少样式,可以用这个解决 方案

@xiaoqiang1999
Copy link

来晚了,或许你说的缺少样式,可以用这个解决 方案

感谢分享

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