23

实现Vue项目主题切换

 4 years ago
source link: https://juejin.im/post/5dee0610518825126d5a2255
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
对于SaaS平台而言,因为需要一套平台面向不同客户,所以会有不同主题切换的需求。本篇主要探讨如何在Vue项目中实现该类需求。 几种方案 有产品需求就要想办法通过技术满足,经过搜索,找到了以下几种方案: 方案一, 定义theme参数,通过prop下发,子组件根

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK