diff --git a/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss b/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss index c327af5a7..eaab74567 100644 --- a/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss +++ b/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss @@ -357,6 +357,7 @@ font-size: 14px; color: $--color-text-primary; line-height: 20px; + white-space: pre-wrap; } } diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue index 8d0d0abe3..0edf6ae76 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -755,9 +755,9 @@
{{<expression name>.$labels.<label name>}}
-
{{$t('tip.expressionLabel')}}{{$t('tip.$labels')}}
+
{{$t('tip.expressionLabel',{expr:"\{\{A.$labels.asset\}\}"})}}
{{<expression name>.$value}}
-
{{$t('tip.expressionValue')}}
+
{{$t('tip.expressionValue',{expr:"\{\{A.$value\}\}"})}}
@@ -1223,7 +1223,7 @@ export default { label: '', min: undefined, max: undefined - }, + } } this.$nextTick(() => { this.chartConfig.param.thresholds.push({ value: undefined, color: randomcolor() }) diff --git a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue index 64f283623..70f5f51d6 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue @@ -505,9 +505,9 @@
{{<expression name>.$labels.<label name>}}
-
{{$t('tip.expressionLabel')}}{{$t('tip.$labels')}}
+
{{$t('tip.expressionLabel',{expr:"\{\{System.$labels.asset\}\}"})}}
{{<expression name>.$value}}
-
{{$t('tip.expressionValue')}}
+
{{$t('tip.expressionValue',{expr:"\{\{System.$value\}\}"})}}