mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 19:41:37 +08:00
修复: 解决 webpack-theme-color-replacer 导致的IE 兼容性问题;
This commit is contained in:
parent
a90fa8d106
commit
6530ce5a35
@ -1,4 +1,4 @@
|
||||
const ThemeColorReplacer = require('webpack-theme-color-replacer')
|
||||
const varyColor = require('webpack-theme-color-replacer/client/varyColor')
|
||||
const client = require('webpack-theme-color-replacer/client')
|
||||
const generate = require('@ant-design/colors/lib/generate').default
|
||||
const themeColor = require('../config').themeColor
|
||||
@ -7,10 +7,10 @@ module.exports = {
|
||||
primaryColor: themeColor,
|
||||
getThemeColors(color) {
|
||||
const lightens = new Array(9).fill().map((t, i) => {
|
||||
return ThemeColorReplacer.varyColor.lighten(color, i / 10)
|
||||
return varyColor.lighten(color, i / 10)
|
||||
})
|
||||
const palettes = generate(color)
|
||||
const rgb = ThemeColorReplacer.varyColor.toNum3(color.replace('#', '')).join(',')
|
||||
const rgb = varyColor.toNum3(color.replace('#', '')).join(',')
|
||||
return palettes.concat(lightens).concat(rgb)
|
||||
},
|
||||
changeThemeColor (newColor) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user