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)" >