File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -433,20 +433,20 @@ Declare the custom events emitted by the component.
433433 }
434434 ```
435435
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- ```
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+ ```
450450
451451- ** See also**
452452 - [ Guide - Fallthrough Attributes] ( /guide/components/attrs )
You can’t perform that action at this time.
0 commit comments