From 533c4855878efd8562a74f646f9b46b147c022e7 Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Mon, 31 Oct 2022 15:26:16 +0800
Subject: [PATCH] =?UTF-8?q?refactor(=E8=A7=86=E5=9B=BE):=20=E8=A7=86?=
=?UTF-8?q?=E5=9B=BE=E6=A0=87=E9=A2=98=E5=A4=87=E6=B3=A8=E7=BC=96=E8=BE=91?=
=?UTF-8?q?=E6=97=B6=E6=98=BE=E7=A4=BA=E5=A1=AB=E5=85=85=E8=83=8C=E6=99=AF?=
=?UTF-8?q?=EF=BC=8C=E4=B8=BB=E9=A2=98=E8=89=B2=E5=88=87=E6=8D=A2=E4=BF=9D?=
=?UTF-8?q?=E7=95=99=E5=A4=87=E6=B3=A8=E7=9A=84=E6=98=BE=E7=A4=BA=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/components/canvas/utils/style.js | 2 +-
frontend/src/views/chart/chart/chart.js | 2 +-
.../component-style/TitleSelectorAntV.vue | 1 +
.../component-style/dialog/RemarkEditor.vue | 27 +++++++++----------
frontend/src/views/chart/view/TitleRemark.vue | 1 +
5 files changed, 16 insertions(+), 17 deletions(-)
diff --git a/frontend/src/components/canvas/utils/style.js b/frontend/src/components/canvas/utils/style.js
index 0cfe1137af..bc34e44c0c 100644
--- a/frontend/src/components/canvas/utils/style.js
+++ b/frontend/src/components/canvas/utils/style.js
@@ -361,7 +361,7 @@ export function adaptCurTheme(customStyle, customAttr, chartType) {
}
}
customAttr['color'] = { ...canvasStyle.chartInfo.chartColor }
- customStyle['text'] = { ...canvasStyle.chartInfo.chartTitle, title: customStyle['text']['title'], show: customStyle['text']['show'] }
+ customStyle['text'] = { ...canvasStyle.chartInfo.chartTitle, title: customStyle['text']['title'], show: customStyle['text']['show'], remarkShow: customStyle['text']['remarkShow'], remark: customStyle['text']['remark'] }
if (customStyle.background) {
delete customStyle.background
}
diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js
index 2ff280ca1a..e7056cccce 100644
--- a/frontend/src/views/chart/chart/chart.js
+++ b/frontend/src/views/chart/chart/chart.js
@@ -211,7 +211,7 @@ export const DEFAULT_TITLE_STYLE_DARK = {
isBolder: true,
remarkShow: false,
remark: '',
- remarkBackgroundColor: '#ffffffff',
+ remarkBackgroundColor: '#5A5C62',
fontFamily: 'Microsoft YaHei',
letterSpace: '0',
fontShadow: false
diff --git a/frontend/src/views/chart/components/component-style/TitleSelectorAntV.vue b/frontend/src/views/chart/components/component-style/TitleSelectorAntV.vue
index 738bbae4b4..3168fe96f8 100644
--- a/frontend/src/views/chart/components/component-style/TitleSelectorAntV.vue
+++ b/frontend/src/views/chart/components/component-style/TitleSelectorAntV.vue
@@ -194,6 +194,7 @@
>