|
@@ -15,12 +15,16 @@
|
|
|
<div class="go-flex-items-center">
|
|
<div class="go-flex-items-center">
|
|
|
<n-text>{{ chartColorsName[key] }}</n-text>
|
|
<n-text>{{ chartColorsName[key] }}</n-text>
|
|
|
<span
|
|
<span
|
|
|
- class="color-item"
|
|
|
|
|
|
|
+ class="theme-color-item"
|
|
|
v-for="colorItem in fetchShowColors(value.color)"
|
|
v-for="colorItem in fetchShowColors(value.color)"
|
|
|
:key="colorItem"
|
|
:key="colorItem"
|
|
|
:style="{ backgroundColor: colorItem }"
|
|
:style="{ backgroundColor: colorItem }"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="theme-bottom"
|
|
|
|
|
+ :style="{ backgroundImage: chartColorsshow[key] }"
|
|
|
|
|
+ ></div>
|
|
|
</n-card>
|
|
</n-card>
|
|
|
</n-collapse-item>
|
|
</n-collapse-item>
|
|
|
</n-collapse>
|
|
</n-collapse>
|
|
@@ -31,7 +35,11 @@
|
|
|
import { ref, computed } from 'vue'
|
|
import { ref, computed } from 'vue'
|
|
|
import { useChartEditStoreStore } from '@/store/modules/chartEditStore/chartEditStore'
|
|
import { useChartEditStoreStore } from '@/store/modules/chartEditStore/chartEditStore'
|
|
|
import { EditCanvasFilterEnum } from '@/store/modules/chartEditStore/chartEditStore.d'
|
|
import { EditCanvasFilterEnum } from '@/store/modules/chartEditStore/chartEditStore.d'
|
|
|
-import { chartColors, chartColorsName } from '@/settings/chartThemes/index'
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ chartColors,
|
|
|
|
|
+ chartColorsName,
|
|
|
|
|
+ chartColorsshow
|
|
|
|
|
+} from '@/settings/chartThemes/index'
|
|
|
import { useDesignStore } from '@/store/modules/designStore/designStore'
|
|
import { useDesignStore } from '@/store/modules/designStore/designStore'
|
|
|
import cloneDeep from 'lodash/cloneDeep'
|
|
import cloneDeep from 'lodash/cloneDeep'
|
|
|
import { icon } from '@/plugins'
|
|
import { icon } from '@/plugins'
|
|
@@ -65,14 +73,16 @@ const selectTheme = (theme: string) => {
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
@include filter-bg-color('background-color4-shallow');
|
|
@include filter-bg-color('background-color4-shallow');
|
|
|
border-radius: 23px;
|
|
border-radius: 23px;
|
|
|
|
|
+ overflow: hidden;
|
|
|
@include deep() {
|
|
@include deep() {
|
|
|
.n-card__content {
|
|
.n-card__content {
|
|
|
padding-top: 5px;
|
|
padding-top: 5px;
|
|
|
- padding-bottom: 5px;
|
|
|
|
|
|
|
+ padding-bottom: 10px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
&.selected {
|
|
&.selected {
|
|
|
border: 1px solid v-bind('themeColor');
|
|
border: 1px solid v-bind('themeColor');
|
|
|
|
|
+ border-bottom: 1px solid rgba(0, 0, 0, 0);
|
|
|
}
|
|
}
|
|
|
&:first-child {
|
|
&:first-child {
|
|
|
margin-top: 0;
|
|
margin-top: 0;
|
|
@@ -80,12 +90,20 @@ const selectTheme = (theme: string) => {
|
|
|
.go-flex-items-center {
|
|
.go-flex-items-center {
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
}
|
|
}
|
|
|
- .color-item {
|
|
|
|
|
|
|
+ .theme-color-item {
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
width: 20px;
|
|
width: 20px;
|
|
|
height: 20px;
|
|
height: 20px;
|
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
|
}
|
|
}
|
|
|
|
|
+ .theme-bottom {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ bottom: 0px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 3px;
|
|
|
|
|
+ background-image: linear-gradient(to right, #e0c3fc 0%, #8ec5fc 100%);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|