From 8bb65e57f4037a29e5c5f88e527b572fdf0a6d89 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: Mon, 16 Jun 2025 14:16:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E9=A5=BC=E5=9B=BE?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E9=94=99=E8=AF=AF=E7=9A=84=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GoVChart/index.vue | 6 +++++- src/packages/components/VChart/Pies/VChartPie/config.vue | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/GoVChart/index.vue b/src/components/GoVChart/index.vue index 200be4b3..5d28ff84 100644 --- a/src/components/GoVChart/index.vue +++ b/src/components/GoVChart/index.vue @@ -209,7 +209,11 @@ const createOrUpdateChart = ( return true } else if (chart) { const spec = transformHandler[chartProps.category || '']?.(chartProps) - chart.updateSpec({ ...spec, data: toRaw(chartProps.dataset), dataset: undefined }) + chart.updateSpec({ ...spec, data: toRaw(chartProps.dataset), dataset: undefined }, false, undefined, { + change: false, + reMake: false, + reAnimate: true + }) return true } return false diff --git a/src/packages/components/VChart/Pies/VChartPie/config.vue b/src/packages/components/VChart/Pies/VChartPie/config.vue index c310188f..b037ed18 100644 --- a/src/packages/components/VChart/Pies/VChartPie/config.vue +++ b/src/packages/components/VChart/Pies/VChartPie/config.vue @@ -129,7 +129,7 @@ const animationHandle = (value: boolean) => { effects: { channel: { outerRadius: { - to: props.optionData.outerRadius * 100 + 0.1 + to: props.optionData.outerRadius * 100 + 10 } }, easing: 'linear' @@ -140,7 +140,7 @@ const animationHandle = (value: boolean) => { effects: { channel: { outerRadius: { - to: props.optionData.outerRadius * 100 + 0.1 + to: props.optionData.outerRadius * 100 + 10 } }, easing: 'linear'