From d2a9653ecb027ecabd78a2fb8608b4e1f9e64187 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 24 Sep 2024 19:32:08 +0300 Subject: [PATCH] forgot something again --- src/components/component_preview/component_preview.vue | 4 ++-- src/components/shadow_control/shadow_control.vue | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/component_preview/component_preview.vue b/src/components/component_preview/component_preview.vue index 087f48ea..f29284c8 100644 --- a/src/components/component_preview/component_preview.vue +++ b/src/components/component_preview/component_preview.vue @@ -187,8 +187,8 @@ export default { Checkbox }, methods: { - update (axis, value) { - this.$emit('update:shadow', { ...this.shadowControl, [axis]: value }) + updateProperty (axis, value) { + this.$emit('update:shadow', { axis, value }) } } } diff --git a/src/components/shadow_control/shadow_control.vue b/src/components/shadow_control/shadow_control.vue index 0305b55c..8c37e82d 100644 --- a/src/components/shadow_control/shadow_control.vue +++ b/src/components/shadow_control/shadow_control.vue @@ -9,6 +9,7 @@ :shadow="selected" :preview-style="style" :disabled="!present" + @update:shadow="({ axis, value }) => updateProperty(axis, value)" />