element ui+vue2.0实现换肤并且自身写的颜色也可以
问题:本地环境换肤可以,但是打包后发现自己写的主题色值#409eff,并没有被替换成功,只有element ui自身的主题色替换了主要代码如下://watch监听主题色变化theme: { async handler(val) { const oldVal = this.chalk ? this.theme : ORIGINAL_THEME if (typeof val !== 'string') return const themeClus
原创
2021-04-27 19:39:23 ·
346 阅读 ·
0 评论