From ef912f91b2dde5ae5973b3b9d6b52d0dd8fdb7fe Mon Sep 17 00:00:00 2001 From: zhong <1781507490@qq.com> Date: Sat, 29 Jun 2024 04:09:58 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20src/views/chart/ContentEdit/compon?= =?UTF-8?q?ents/EditRule/index.vue.=20=E4=BF=AE=E6=94=B9=20=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6*2=20=20=E4=BD=8E=E4=BA=8E1920=E6=97=B6=E6=8B=96?= =?UTF-8?q?=E4=B8=8D=E5=8A=A8=E5=92=8C=E4=BF=AE=E6=94=B9=E5=AE=BD=E9=AB=98?= =?UTF-8?q?=E6=97=B6=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=B2=A1=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhong <1781507490@qq.com> --- .../ContentEdit/components/EditRule/index.vue | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/views/chart/ContentEdit/components/EditRule/index.vue b/src/views/chart/ContentEdit/components/EditRule/index.vue index 0dbd527b..21ab7e27 100644 --- a/src/views/chart/ContentEdit/components/EditRule/index.vue +++ b/src/views/chart/ContentEdit/components/EditRule/index.vue @@ -13,7 +13,7 @@ >
-
+
{ return chartEditStore.getEditCanvas.scale }) -// 滚动条拖动的高度 +// 滚动条拖动的宽度 const containerWidth = computed(() => { + return `${window.innerWidth * 2}px` +}) + +// 滚动条拖动的高度 +const containerHeight = computed(() => { return `${height.value * 2}px` }) @@ -203,14 +208,12 @@ watch( (newValue, oldValue) => { if (oldValue !== newValue && chartLayoutStore.getRePositionCanvas) { chartLayoutStore.setItemUnHandle(ChartLayoutStoreEnum.RE_POSITION_CANVAS, false) - handleScroll() - setTimeout(() => { + } + handleScroll() + setTimeout(() => { canvasPosCenter() reDraw() - }, 400) - } else { - reDraw(); - } + }, 400) } ) @@ -337,7 +340,7 @@ window.onKeySpacePressHold = (isHold: boolean) => { .edit-screen-container { position: absolute; - height: v-bind('containerWidth'); + height: v-bind('containerHeight'); top: 0; left: 0; } From 2201c0921913d5f64053b5389c536fa5652a41df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Tue, 6 Aug 2024 21:07:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E9=A5=BC?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E7=AD=BE=E6=A8=A1=E7=B3=8A=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chartConfiguration/echarts/label.ts | 6 ++ .../Charts/Pies/PieCommon/config.ts | 6 +- .../Charts/Pies/PieCommon/config.vue | 89 +++++++++++++++---- 3 files changed, 82 insertions(+), 19 deletions(-) diff --git a/src/packages/chartConfiguration/echarts/label.ts b/src/packages/chartConfiguration/echarts/label.ts index c907687a..a71a3804 100644 --- a/src/packages/chartConfiguration/echarts/label.ts +++ b/src/packages/chartConfiguration/echarts/label.ts @@ -3,5 +3,11 @@ export const labelConfig = { { label: '外侧', value: 'outside' }, { label: '内部', value: 'inside' }, { label: '中心', value: 'center' } + ], + fontWeight: [ + { label: '正常', value: 'normal' }, + { label: '普通加粗', value: 'bold' }, + { label: '加粗', value: 'bolder' }, + { label: '细体', value: 'lighter' } ] } diff --git a/src/packages/components/Charts/Pies/PieCommon/config.ts b/src/packages/components/Charts/Pies/PieCommon/config.ts index 1f999a51..35cc632f 100644 --- a/src/packages/components/Charts/Pies/PieCommon/config.ts +++ b/src/packages/components/Charts/Pies/PieCommon/config.ts @@ -52,7 +52,11 @@ const option = { show: false, position: 'center', formatter: '{b}', - fontSize:12 + fontWeight: 'normal', + fontSize: 14, + color: '#454E54', + textBorderColor: '#ffffff', + textBorderWidth: 1 }, emphasis: { label: { diff --git a/src/packages/components/Charts/Pies/PieCommon/config.vue b/src/packages/components/Charts/Pies/PieCommon/config.vue index 2dd38301..bce322cd 100644 --- a/src/packages/components/Charts/Pies/PieCommon/config.vue +++ b/src/packages/components/Charts/Pies/PieCommon/config.vue @@ -18,6 +18,20 @@ 无鼠标点击图例场景时,可强行打开图例 + + + + + + + + + + + + + + @@ -38,28 +52,67 @@ + + + + + + + + + + + + + + + + + - - - - 圆角大小 - + + - - - - 线条宽度 - + + + + + + + + + +