Skip to content

Commit

Permalink
docs: fix line break (#2610)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritaniAyaka committed Dec 15, 2023
1 parent 4cbc64e commit c394c62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/guide/components/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ export default {

## Events as Props {#events-props}

You may also declare and pass `events` as `props`, by prefixing the capitalized event name with `on`
You may also declare and pass `events` as `props`, by prefixing the capitalized event name with `on`.

Using `props.onEvent` has a different behaviour than using `emit('event')`, as the former will pass only handle the property based listener (either `@event` or `:on-event`)

:::warning
Expand Down

0 comments on commit c394c62

Please sign in to comment.