Bläddra i källkod

forgot something again

Henry Jameson 2 månader sedan
förälder
incheckning
d2a9653ecb

+ 2 - 2
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 })
     }
   }
 }

+ 1 - 0
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