@@ -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 })
}
@@ -9,6 +9,7 @@
:shadow="selected"
:preview-style="style"
:disabled="!present"
+ @update:shadow="({ axis, value }) => updateProperty(axis, value)"
/>
<div class="shadow-switcher">
<Select