diff --git a/src/views/components/emoEnergyConverter.vue b/src/views/components/emoEnergyConverter.vue index 06e985b..462b524 100644 --- a/src/views/components/emoEnergyConverter.vue +++ b/src/views/components/emoEnergyConverter.vue @@ -64,21 +64,21 @@ const generateGraphics = (min, max) => { }); } // y轴数值(顶部位置) - // if (isFullyVisible) { - // graphics.push({ - // type: "text", - // left: '13%', // 向右调整位置 - // top: getNumberTop(min, max, region.max), - // // top: 100, - // style: { - // text: region.max.toString(), - // fill: region.NumberColor, - // fontSize: 12, - // fontWeight: "bold", - // }, - // z: 3, - // }); - // } + if (isFullyVisible) { + graphics.push({ + type: "text", + left: '13%', // 向右调整位置 + top: getNumberTop(min, max, region.max), + // top: 100, + style: { + text: region.max.toString(), + fill: region.NumberColor, + fontSize: 12, + fontWeight: "bold", + }, + z: 3, + }); + } return graphics; }); };