Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: change defineEmits to defineEmit #243

Closed
wants to merge 1 commit into from

Conversation

Scrum
Copy link

@Scrum Scrum commented Dec 3, 2020

No description provided.

@Scrum
Copy link
Author

Scrum commented Mar 18, 2021

@yyx990803 ping

@@ -75,7 +75,7 @@ Introduce a new script type in Single File Components: `<script setup>`, which e
foo: String,
})
// expects emits options
const emit = defineEmits(['update', 'delete'])
const emit = defineEmit(['update', 'delete'])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code should be updated to defineEmits to match defineProps. I don't know if it would be a breaking change since this feature is experimental.

This was referenced Apr 22, 2021
@posva posva changed the title docs: fix typo docs: change defineEmits to defineEmit Apr 27, 2021
@yyx990803 yyx990803 closed this Jul 2, 2021
@yyx990803 yyx990803 deleted the branch vuejs:script-setup-2 July 2, 2021 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants