Skip to content

Commit d827f39

Browse files
committed
Use inline $emit instead of defining method
1 parent a6a5058 commit d827f39

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/AddButton.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:color="buttonColor"
55
:width="buttonSize"
66
:height="buttonSize"
7-
@click="onClick"
7+
@click="$emit('clickAddButton')"
88
>
99
<v-icon :size="iconSize" :color="iconColor">{{ iconName }}</v-icon>
1010
</v-btn>
@@ -41,11 +41,6 @@ export default Vue.extend({
4141
required: false,
4242
default: '40'
4343
}
44-
},
45-
methods: {
46-
onClick(): void {
47-
this.$emit('clickAddButton')
48-
}
4944
}
5045
})
5146
</script>

0 commit comments

Comments
 (0)