|
@@ -1,10 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <el-color-picker
|
|
|
|
|
- v-model="theme"
|
|
|
|
|
- :predefine="['#409EFF', '#1890ff', '#304156','#212121','#11a983', '#13c2c2', '#6959CD', '#f5222d', ]"
|
|
|
|
|
- class="theme-picker"
|
|
|
|
|
- popper-class="theme-picker-dropdown"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-color-picker v-model="theme" :predefine="['#409EFF', '#1890ff', '#304156','#212121','#11a983', '#13c2c2', '#6959CD', '#f5222d', ]" class="theme-picker" popper-class="theme-picker-dropdown" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -89,6 +84,9 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
updateStyle(style, oldCluster, newCluster) {
|
|
updateStyle(style, oldCluster, newCluster) {
|
|
|
let newStyle = style
|
|
let newStyle = style
|
|
|
|
|
+ if (newStyle.indexOf('sidebar') !== -1) {
|
|
|
|
|
+ console.log(newStyle)
|
|
|
|
|
+ }
|
|
|
oldCluster.forEach((color, index) => {
|
|
oldCluster.forEach((color, index) => {
|
|
|
newStyle = newStyle.replace(new RegExp(color, 'ig'), newCluster[index])
|
|
newStyle = newStyle.replace(new RegExp(color, 'ig'), newCluster[index])
|
|
|
})
|
|
})
|