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 19928980b..977bb863a 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 @@ -14,6 +14,9 @@ .el-form-item__error { padding-top: 0; } + .el-input-number--small { + width: 100%; + } } .chart-title-config { border: 1px solid $--border-color-light; diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue index a5738eccb..9d120da90 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -362,6 +362,7 @@ /> -
- other +
+ + +
+ {{$t('dashboard.panel.chartForm.displayConfig')}} +
+
+ + + + + {{item.name}} + + + +
+
+ + + + + span-{{item}} + + + + + + + + + + span-{{item}} + + + +
+ +
+ {{$t('dashboard.panel.chartForm.content')}} + +
+ + + + + + +
+
+ +
+
+ + + + +
diff --git a/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js b/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js index 391407884..f652d1792 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js +++ b/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js @@ -8,6 +8,9 @@ const rz = { } } export default { + props: { + params: {} + }, data () { return { language: localStorage.getItem('nz-language'),