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

使用主题后,样式失效, #13

Open
selvinzr opened this issue Dec 29, 2024 · 2 comments
Open

使用主题后,样式失效, #13

selvinzr opened this issue Dec 29, 2024 · 2 comments

Comments

@selvinzr
Copy link

selvinzr commented Dec 29, 2024

在配置项设置主题后,所有样式都丢失了
arco:{ imports: ['Notification', 'Message'], locales: ['getLocale'], importStyle:'less', theme: '@arco-themes/vue-rose', },
原因是没有导入主题的index.less

@wiidede
Copy link
Owner

wiidede commented Dec 29, 2024

初步看一了一下,应该是我代码的问题,我没有很好的处理less和theme,而且我本身对less不是很熟悉,我有空看看怎么改

@wiidede
Copy link
Owner

wiidede commented Jan 18, 2025

v0.2.1
将引入theme.less改成了index.less,其他没有做改变。

P.S. 前几天想多了这里怎么没有做主题的按需引入,又去把@arco-plugins/vite-vue的逻辑过了一遍,现在还是维持,这个选项只会全量引入主题样式🫠

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