This commit is contained in:
DESKTOP-FUDKNA8\znjsz 2024-04-11 16:24:04 +08:00
parent 73aa0d9f54
commit 1ee0895f37
4 changed files with 6 additions and 7 deletions

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 {