We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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] 用vue怎么实现一个换肤的功能?
The text was updated successfully, but these errors were encountered:
这个……全局的theme属性然后做class判断或者加载不同的样式文件。一种是编译时换肤 一种是用户操作换肤。编译时换肤可以通过css in js相关技术修改css预处理器的变量 。用户操作换肤 只能内置一些styleb变量供用户选择了
Sorry, something went wrong.
在vue.config.js同级目录下创建 .env.development / .env.production 文件可以进行开发/生产环境的全局变量配置(需VUE_APP前缀),在项目中根据全局变量加载对应的sass文件实现换肤
.env.development
.env.production
VUE_APP
sass
less、sass都可
No branches or pull requests
[vue] 用vue怎么实现一个换肤的功能?
The text was updated successfully, but these errors were encountered: