Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman authored Oct 9, 2024
1 parent ba6e4b8 commit 636f4b3
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/api/options-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,20 +433,20 @@ Declare the custom events emitted by the component.
}
```

Listeners on events may be captured in components by defining them as properties with the naming scheme of `on{Event}`:

> If an event contains a colon, use the naming scheme `on{Event}:{event}`.
```js
export default {
props: {
onCheck: Function,
'onClick:export': Function,
},

emits: ['check', 'click:export'],
}
```
Listeners on events may be captured in components by defining them as properties with the naming scheme of `on{Event}`:
> If an event contains a colon, use the naming scheme `on{Event}:{event}`.
```js
export default {
props: {
onCheck: Function,
'onClick:export': Function,
},
emits: ['check', 'click:export'],
}
```

- **See also**
- [Guide - Fallthrough Attributes](/guide/components/attrs)
Expand Down

0 comments on commit 636f4b3

Please sign in to comment.