From 3d9c54c38a6b9a11abac639f3e3a111aa2bd7809 Mon Sep 17 00:00:00 2001 From: jingna <1264204245@qq.com> Date: Tue, 29 Jul 2025 16:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A0=E6=AF=94=E5=9B=BE=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/models/chart/chart-attr.d.ts | 4 ++ .../editor/editor-style/ChartStyle.vue | 5 ++ .../components/BasicStyleSelector.vue | 24 +++++++- .../views/chart/components/editor/index.vue | 17 ++++-- .../chart/components/editor/util/chart.ts | 3 +- .../js/panel/charts/others/DeTree.ts | 1 - .../js/panel/charts/pie/proportion.ts | 59 +++++++++++++++---- 7 files changed, 95 insertions(+), 18 deletions(-) diff --git a/core/core-frontend/src/models/chart/chart-attr.d.ts b/core/core-frontend/src/models/chart/chart-attr.d.ts index 771e574..28775a6 100644 --- a/core/core-frontend/src/models/chart/chart-attr.d.ts +++ b/core/core-frontend/src/models/chart/chart-attr.d.ts @@ -384,6 +384,10 @@ declare interface ChartBasicStyle { * 占比图图形底色 */ proportionBackgroundColor: string + /** + * 占比图图形展示选择 + */ + proportionSelect:string } /** * 表头属性 diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue index 6baabfc..4b92aba 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue @@ -96,6 +96,10 @@ const props = defineProps({ allFields: { type: Array, required: true + }, + allGraphcs:{ + type: Array, + required: true } }) @@ -279,6 +283,7 @@ watch( :property-inner="propertyInnerAll['basic-style-selector']" :themes="themes" :chart="chart" + :allGraphcs = "props.allGraphcs" @onBasicStyleChange="onBasicStyleChange" @onMiscChange="onMiscChange" /> diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue index 589ea00..dcd5988 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue @@ -41,7 +41,10 @@ const props = defineProps({ }, propertyInner: { type: Array - } + }, + allGraphcs: { + type: Object + }, }) const showProperty = prop => { const has = props.propertyInner?.includes(prop) @@ -369,6 +372,7 @@ onMounted(() => { } }) }) +