commit: d2a9653ecb027ecabd78a2fb8608b4e1f9e64187
parent 735433beb48764ec560d852a58a8e2ed954220f6
Author: Henry Jameson <me@hjkos.com>
Date: Tue, 24 Sep 2024 19:32:08 +0300
forgot something again
Diffstat:
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
@@ -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
@@ -9,6 +9,7 @@
:shadow="selected"
:preview-style="style"
:disabled="!present"
+ @update:shadow="({ axis, value }) => updateProperty(axis, value)"
/>
<div class="shadow-switcher">
<Select