From 5ef7b4e2d09bfa7bda7d18aef0581fe646bc029a Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 16 Dec 2025 10:25:07 +0800 Subject: [PATCH] =?UTF-8?q?style(=E5=9B=BE=E8=A1=A8):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=B0=94=E6=B3=A1=E5=92=8C=E7=AC=A6=E5=8F=B7=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E9=80=9F=E7=8E=87=E5=92=8C=E7=8E=AF=E6=95=B0=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=80=BC=E9=99=90=E5=88=B6=E4=B8=8D=E8=83=BD=E7=AD=89=E4=BA=8E?= =?UTF-8?q?=200=EF=BC=8C=E5=B9=B6=E4=B8=94=E6=9C=80=E5=B0=8F=E5=80=BC?= =?UTF-8?q?=E4=B8=BA=200.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/BubbleAnimateCfg.vue | 32 +++++++------------ 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/BubbleAnimateCfg.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/BubbleAnimateCfg.vue index 2723fef2ae..e06965c8fe 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/BubbleAnimateCfg.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/BubbleAnimateCfg.vue @@ -39,26 +39,18 @@ const onBubbleAnimateChange = () => { } const changeSpeedSize = v => { - const _v = parseFloat(v) - if (_v >= 0 && _v <= 5) { - state.bubbleAnimateForm.speed = _v - } else if (_v < 0) { - state.bubbleAnimateForm.speed = 0 - } else if (_v > 5) { - state.bubbleAnimateForm.speed = 5 - } + let _v = parseFloat(v) + if (isNaN(_v) || _v < 0.1) _v = 0.1 + if (_v > 5) _v = 5 + state.bubbleAnimateForm.speed = _v onBubbleAnimateChange() } const changeRingsSize = v => { - const _v = parseFloat(v) - if (_v >= 0 && _v <= 5) { - state.bubbleAnimateForm.rings = _v - } else if (_v < 0) { - state.bubbleAnimateForm.rings = 0 - } else if (_v > 5) { - state.bubbleAnimateForm.rings = 5 - } + let _v = parseFloat(v) + if (isNaN(_v) || _v < 0.1) _v = 0.1 + if (_v > 5) _v = 5 + state.bubbleAnimateForm.rings = _v onBubbleAnimateChange() } @@ -122,7 +114,7 @@ init()