From da85d49c94a98f6eb7122d82f620f27621e5ae2d Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 24 Oct 2023 14:39:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BE=E8=A1=A8=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=87=E6=B3=A8=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/zh-CN.ts | 1 + .../editor-style/components/TitleSelector.vue | 447 +++++++++++------- .../views/chart/components/views/index.vue | 17 +- 3 files changed, 281 insertions(+), 184 deletions(-) diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 325315cf9f..f647db8531 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -951,6 +951,7 @@ export default { field_can_not_empty: '字段不能为空', conditions_can_not_empty: '字段的条件不能为空,若无条件,请直接删除该字段', remark: '备注', + remark_show: '显示备注', remark_edit: '编辑备注', remark_bg_color: '背景填充', quota_font_family: '值字体', diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue index 178d77c595..feea8b5fc1 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue @@ -1,5 +1,5 @@ diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index abb47d9833..390577b877 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -101,6 +101,10 @@ const snapshotStore = snapshotStoreWithOut() const state = reactive({ initReady: true, //curComponent 切换期间 不接收外部的calcData 和 renderChart 事件 title_show: true, + title_remark: { + show: false, + remark: '' + }, title_class: { fontSize: '18px', color: '#303133', @@ -240,6 +244,9 @@ const initTitle = () => { customStyle.background.alpha ) } + + state.title_remark.show = customStyle.text.remarkShow + state.title_remark.remark = customStyle.text.remark } } @@ -563,8 +570,16 @@ const toolTip = computed(() => {
+ + + + + +