Parcourir la source

Return object for data()

sbkwgh il y a 8 ans
Parent
commit
be5b319d3a
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/components/FancyInput.vue

+ 3 - 1
src/components/FancyInput.vue

@@ -10,7 +10,9 @@
 		name: 'FancyInput',
 		props: ['value', 'placeholder'],
 		data () {
-			active: false
+			return {
+				active: false
+			}
 		},
 		methods: {
 			updateValue (val) {