From 787df7c28218eb49b72413675213bdff82543aaa Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 4 Dec 2024 12:38:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E7=9B=98=E8=AE=BE=E7=BD=AE=E5=A5=BD=E4=BA=86?= =?UTF-8?q?=E4=BB=A5=E5=90=8E=EF=BC=8C=E7=82=B9=E5=85=B6=E4=BB=96=E7=9A=84?= =?UTF-8?q?=E5=86=8D=E9=87=8D=E6=96=B0=E7=82=B9=E4=BB=AA=E8=A1=A8=E7=9B=98?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=9A=E8=BF=98=E5=8E=9F=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20#13434?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-style/components/MiscSelector.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscSelector.vue index b387ab0d4c..b82d8b3561 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscSelector.vue @@ -39,8 +39,8 @@ const emit = defineEmits(['onMiscChange']) watch( () => props.chart, () => { - initField() init() + initField() }, { deep: true } ) @@ -337,7 +337,7 @@ const changeMaxValidate = prop => { state.miscForm.liquidMax = cloneDeep(defaultMaxValue.liquidMax) } } - changeMisc(prop) + changeMisc(prop, true) } const addAxis = (form: AxisEditForm) => { const maxTypeKey = props.chart.type === 'liquid' ? 'liquidMaxType' : 'gaugeMaxType' @@ -357,8 +357,8 @@ const addAxis = (form: AxisEditForm) => { } } onMounted(() => { - initField() init() + initField() useEmitt({ name: 'addAxis', callback: addAxis }) }) @@ -528,7 +528,7 @@ onMounted(() => { v-model="state.miscForm.gaugeMax" size="small" controls-position="right" - @blur="changeMaxValidate('gaugeMax')" + @change="changeMaxValidate('gaugeMax')" />