|
@@ -2,7 +2,7 @@ import client from 'webpack-theme-color-replacer/client'
|
|
|
import generate from '@ant-design/colors/lib/generate'
|
|
|
|
|
|
export default {
|
|
|
- primaryColor: '#1890ff',
|
|
|
+ primaryColor: '#1890ff', // TODO 需要处理的暗坑
|
|
|
getAntdSerials (color) {
|
|
|
// 淡化(即less的tint)
|
|
|
const lightens = new Array(9).fill().map((t, i) => {
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
changeColor (newColor) {
|
|
|
var lastColor = this.lastColor || this.primaryColor
|
|
|
var options = {
|
|
|
- cssUrl: '/css/theme-colors.css',
|
|
|
+ cssUrl: '/css/theme-colors.css', // TODO 需要处理的暗坑
|
|
|
oldColors: this.getAntdSerials(lastColor), // current colors array. The same as `matchColors`
|
|
|
newColors: this.getAntdSerials(newColor) // new colors array, one-to-one corresponde with `oldColors`
|
|
|
}
|