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

Vue provide(THEME_KEY, 'dark') 會打亂CSS #808

Closed
1 task done
fattysun1121 opened this issue Aug 9, 2024 · 8 comments
Closed
1 task done

Vue provide(THEME_KEY, 'dark') 會打亂CSS #808

fattysun1121 opened this issue Aug 9, 2024 · 8 comments

Comments

@fattysun1121
Copy link

请确认

  • 我可以确认这个问题无法在 ECharts 项目本身中复现。

您是如何将 Vue-ECharts 引入项目的?

通过 ES 模块 import

版本信息

├─┬ @vitejs/[email protected]
│ └── [email protected] deduped
├── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
└─┬ [email protected]
  └─┬ @vue/[email protected]
    └── [email protected] deduped

问题详情

我試過了很多次在不同的瀏覽器中。這一行代碼:
provide(THEME_KEY, 'dark')
會讓我的app的css整個解體。
從這樣:
Screenshot 2024-08-08 at 10 00 47 PM
變成這樣:
Screenshot 2024-08-08 at 10 01 24 PM

整個relevant code 有這些
Screenshot 2024-08-08 at 10 02 01 PM

在問題復現的時候,uncomment provide的那一行可以看到影響。

问题复现

https://github.com/fattysun1121/ai-charts-interface/tree/94301c0bc354d5d0a0a5d3f0613cc5ecb55a7fa3

@fattysun1121
Copy link
Author

拜託各位了

@daidaibg
Copy link

daidaibg commented Aug 9, 2024

拜託各位了

#805 (comment)

@fattysun1121
Copy link
Author

fattysun1121 commented Aug 9, 2024

原來是類似的問題。感謝

@Justineo
Copy link
Member

@fattysun1121 请看一下升级到 [email protected] 以后这个问题是否已经解决?

@fattysun1121
Copy link
Author

我是降級到6.7.3解決掉到

@fattysun1121
Copy link
Author

我升級到7.0.3看看

@Justineo
Copy link
Member

我升級到7.0.3看看

Hi,请问问题解决了吗?

@Justineo
Copy link
Member

先关闭了,如果仍有问题请开一个新 issue。

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

3 participants