We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391b3ca commit ba6e4b8Copy full SHA for ba6e4b8
src/api/options-state.md
@@ -433,6 +433,21 @@ Declare the custom events emitted by the component.
433
}
434
```
435
436
+Listeners on events may be captured in components by defining them as properties with the naming scheme of `on{Event}`:
437
+
438
+> If an event contains a colon, use the naming scheme `on{Event}:{event}`.
439
440
+```js
441
+export default {
442
+ props: {
443
+ onCheck: Function,
444
+ 'onClick:export': Function,
445
+ },
446
447
+ emits: ['check', 'click:export'],
448
+}
449
+```
450
451
- **See also**
452
- [Guide - Fallthrough Attributes](/guide/components/attrs)
453
- [Guide - Typing Component Emits](/guide/typescript/options-api#typing-component-emits) <sup class="vt-badge ts" />
0 commit comments