洞察报告;

This commit is contained in:
钱冠学
2024-09-14 11:40:35 +08:00
parent 9722cf118d
commit 0e7a186f78
3 changed files with 20 additions and 16 deletions

View File

@@ -277,7 +277,6 @@ function onUpdateReport() {
align-items: center;
width: 104px;
height: 32px;
border: 1px solid #CCCCCC;
border-radius: 4px;
background: #FFFFFF;

View File

@@ -106,6 +106,10 @@ function toggleVisibility() {
}
}
.value {
font-family: Source Han Sans, sans-serif;
}
.section {
padding-bottom: 1px;
}

View File

@@ -165,24 +165,24 @@ function downloadHotAreaImage() {
const textLeft = item.left + item.width * 0.5 - textMetrics.width * 0.5
const textTop = item.top + item.height * 0.5
ctx.beginPath()
ctx.fillStyle = props.color
ctx.roundRect(
textLeft - 3,
textTop - (textMetrics.actualBoundingBoxAscent + textMetrics.actualBoundingBoxDescent) * 0.5 - 6,
textMetrics.width + 6,
textMetrics.actualBoundingBoxAscent + textMetrics.actualBoundingBoxDescent + 6,
4
)
ctx.fill()
ctx.closePath()
// ctx.beginPath()
// ctx.fillStyle = props.color
// ctx.roundRect(
// textLeft - 3,
// textTop - (textMetrics.actualBoundingBoxAscent + textMetrics.actualBoundingBoxDescent) * 0.5 - 6,
// textMetrics.width + 6,
// textMetrics.actualBoundingBoxAscent + textMetrics.actualBoundingBoxDescent + 6,
// 4
// )
// ctx.fill()
// ctx.closePath()
ctx.beginPath()
ctx.fillStyle = '#FFFFFF'
ctx.roundRect(
textLeft - 2,
textTop - (textMetrics.actualBoundingBoxAscent + textMetrics.actualBoundingBoxDescent) * 0.5 - 5,
textMetrics.width + 4,
textMetrics.actualBoundingBoxAscent + textMetrics.actualBoundingBoxDescent + 4,
textLeft - 4,
textTop - (textMetrics.actualBoundingBoxAscent + textMetrics.actualBoundingBoxDescent) * 0.5 - 6,
textMetrics.width + 8,
textMetrics.actualBoundingBoxAscent + textMetrics.actualBoundingBoxDescent + 8,
4
)
ctx.fill()
@@ -349,5 +349,6 @@ function downloadDetailTable() {
.original-title {
justify-content: flex-start !important;
color: #81B74C;
}
</style>