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 d4ba810b9..9ad3da3f4 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 @@ -365,6 +365,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 f88a60c4d..d485b4870 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -801,9 +801,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 5cc528fc0..78fe39078 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue @@ -453,9 +453,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\}\}"})}}