this.$emit not a function in component method