From 843722009f079d92694955bf53c0a876255d1f06 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 3 Jun 2024 11:33:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=97=A0=E6=B3=95=E6=89=B9=E9=87=8F=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=80=8F=E6=98=8E=E5=BA=A6=E7=AD=89=E6=A0=B7=E5=BC=8F=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-component/common/CommonAttr.vue | 8 +++-- .../common/CommonStyleSet.vue | 35 +++++++++++-------- .../component-group/DragComponent.vue | 1 + 3 files changed, 27 insertions(+), 17 deletions(-) diff --git a/core/core-frontend/src/custom-component/common/CommonAttr.vue b/core/core-frontend/src/custom-component/common/CommonAttr.vue index c12579e11e..5ab4fd0063 100644 --- a/core/core-frontend/src/custom-component/common/CommonAttr.vue +++ b/core/core-frontend/src/custom-component/common/CommonAttr.vue @@ -61,7 +61,7 @@ const onBackgroundChange = val => { emits('onAttrChange', { custom: 'commonBackground' }) } -const onStyleAttrChange = (value, key) => { +const onStyleAttrChange = ({ key, value }) => { snapshotStore.recordSnapshotCache() emits('onAttrChange', { custom: 'style', property: key, value: value }) } @@ -143,7 +143,11 @@ const stopEvent = e => { name="style" class="common-style-area" > - + diff --git a/core/core-frontend/src/custom-component/common/CommonStyleSet.vue b/core/core-frontend/src/custom-component/common/CommonStyleSet.vue index 0958e58229..b54855e0cf 100644 --- a/core/core-frontend/src/custom-component/common/CommonStyleSet.vue +++ b/core/core-frontend/src/custom-component/common/CommonStyleSet.vue @@ -114,7 +114,7 @@ :effect="themes" v-model="styleForm[styleOptionKey.value]" size="small" - @change="changeStyle" + @change="changeStylePre(styleOptionKey.value)" >