style(图表): 优化水波图标签显示样式

This commit is contained in:
jianneng-fit2cloud
2026-01-15 10:46:46 +08:00
committed by jianneng-fit2cloud
parent e16e710566
commit 05e1d0be1a
2 changed files with 4 additions and 5 deletions

View File

@@ -561,6 +561,7 @@ const isProgressBar = computed(() => {
:predefine="COLOR_PANEL"
@change="changeLabelAttr('color')"
is-custom
show-alpha
/>
</el-form-item>
<el-form-item

View File

@@ -175,14 +175,12 @@ export class Liquid extends G2PlotChartView<LiquidOptions, G2Liquid> {
fontSize: label.fontSize.toString() + 'px',
color: label.color,
lineHeight: '"unset"',
overflow: 'visible'
overflow: 'visible',
opacity: 1
}
const title = label.showQuota
? {
style: {
...style,
fontWeight: 'blod'
},
style,
formatter: () => {
return valueFormatter(chart.data.series[0].data[0], label.quotaLabelFormatter)
}