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 0b079a253..1d4d7e800 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 970479836..7da534753 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -762,9 +762,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\}\}"})}}
diff --git a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue index 5fb3d117d..45794e3ff 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue @@ -506,9 +506,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\}\}"})}}