修改样式

This commit is contained in:
GGJ
2024-09-29 18:15:54 +08:00
parent e140362c42
commit 83af279826
7 changed files with 291 additions and 235 deletions

View File

@@ -153,7 +153,10 @@ const handlerYAxis = () => {
},
axisLabel: {
color: '#000',
fontSize: 14
fontSize: 14,
formatter: function (value) {
return value.toFixed(0); // 格式化显示为一位小数
}
},
splitLine: {
lineStyle: {
@@ -162,7 +165,8 @@ const handlerYAxis = () => {
type: 'dashed',
opacity: 0.5
}
}
},
}
// props.options?.xAxis 是数组还是对象
if (Array.isArray(props.options?.yAxis)) {
@@ -245,11 +249,13 @@ watch(
width: 100%;
height: 100%;
position: relative;
.el-button {
position: absolute;
right: 0px;
top: -60px;
}
.my-chart {
height: 100%;
width: 100%;