From a232c36713f753e5318801e558f378c93da96759 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Mon, 4 Mar 2024 14:48:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=8F=98=E6=9B=B4=E9=98=B2=E6=8A=96=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=B1=9E=E6=80=A7=E5=92=8C=E5=AE=9E=E9=99=85?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/shapeAttr/SizeSelector.vue | 6 ++++++ .../views/chart/components/shapeAttr/SizeSelectorAntV.vue | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/core/frontend/src/views/chart/components/shapeAttr/SizeSelector.vue b/core/frontend/src/views/chart/components/shapeAttr/SizeSelector.vue index 972b8dbf4a..d0d6644476 100644 --- a/core/frontend/src/views/chart/components/shapeAttr/SizeSelector.vue +++ b/core/frontend/src/views/chart/components/shapeAttr/SizeSelector.vue @@ -1302,6 +1302,12 @@ export default { this.fontSize = arr }, changeBarSizeCase(modifyName) { + if (!this.doChange) { + this.doChange = _.debounce(() => this.debounceChange(modifyName), 200) + } + this.doChange() + }, + debounceChange(modifyName) { this.sizeForm['modifyName'] = modifyName if (this.sizeForm.gaugeMax <= this.sizeForm.gaugeMin) { this.$message.error(this.$t('chart.max_more_than_mix')) diff --git a/core/frontend/src/views/chart/components/shapeAttr/SizeSelectorAntV.vue b/core/frontend/src/views/chart/components/shapeAttr/SizeSelectorAntV.vue index ed35884998..141af10f37 100644 --- a/core/frontend/src/views/chart/components/shapeAttr/SizeSelectorAntV.vue +++ b/core/frontend/src/views/chart/components/shapeAttr/SizeSelectorAntV.vue @@ -1897,6 +1897,12 @@ export default { this.fontSize = arr }, changeBarSizeCase(modifyName) { + if (!this.doChange) { + this.doChange = _.debounce(() => this.debounceChange(modifyName), 200) + } + this.doChange() + }, + debounceChange(modifyName) { this.sizeForm['modifyName'] = modifyName if (this.sizeForm.gaugeMax <= this.sizeForm.gaugeMin) { this.$message.error(this.$t('chart.max_more_than_mix'))