合并静态首页代码至master #1

Merged
zwq merged 16 commits from home-add-map into master 2024-04-11 16:43:00 +08:00
4 changed files with 6 additions and 7 deletions
Showing only changes of commit 1ee0895f37 - Show all commits

View File

@ -95,7 +95,6 @@ export default {
.chip-yield { .chip-yield {
height: 0; height: 0;
flex: 1; flex: 1;
background: #c0c1;
display: flex; display: flex;
gap: 12px; gap: 12px;

View File

@ -45,7 +45,7 @@ export default {
title: { title: {
text: "78%", text: "78%",
left: "48%", left: "48%",
top: "35%", top: "40%",
textAlign: "center", textAlign: "center",
textStyle: { textStyle: {
fontWeight: 600, fontWeight: 600,
@ -165,7 +165,7 @@ export default {
watch: { watch: {
/** 全屏状态切换时,对柱子粗细和字体大小进行相应调整 */ /** 全屏状态切换时,对柱子粗细和字体大小进行相应调整 */
isFullscreen(val) { isFullscreen(val) {
this.options.title.top = val ? "40%" : "35%"; // this.options.title.top = val ? "40%" : "37%";
this.options.title.textStyle.fontSize = val ? 48 : 32; this.options.title.textStyle.fontSize = val ? 48 : 32;
this.options.title.subtextStyle.fontSize = val ? 18 : 14; this.options.title.subtextStyle.fontSize = val ? 18 : 14;
this.initOptions(this.options); this.initOptions(this.options);

View File

@ -12,7 +12,7 @@
v-for="item in legend" v-for="item in legend"
:key="item.label" :key="item.label"
class="legend-item" class="legend-item"
:style="{ fontSize: isFullscreen ? '16px' : '12px' }" :style="{ fontSize: isFullscreen ? '0.58vw' : '0.54vw' }"
>{{ item.label }}</span >{{ item.label }}</span
> >
</div> </div>
@ -213,7 +213,7 @@ export default {
.legend-item { .legend-item {
position: relative; position: relative;
font-size: 12px; // font-size: 12px;
margin-right: 0.67vw; margin-right: 0.67vw;
&::before { &::before {

View File

@ -12,7 +12,7 @@
v-for="item in legend" v-for="item in legend"
:key="item.label" :key="item.label"
class="legend-item" class="legend-item"
:style="{ fontSize: isFullscreen ? '16px' : '12px' }" :style="{ fontSize: isFullscreen ? '0.58vw' : '0.54vw' }"
>{{ item.label }}</span >{{ item.label }}</span
> >
</div> </div>
@ -248,7 +248,7 @@ export default {
.legend-item { .legend-item {
position: relative; position: relative;
font-size: 12px; // font-size: 12px;
margin-right: 0.67vw; margin-right: 0.67vw;
&::before { &::before {