You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/api/index.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1869,21 +1869,18 @@ type: api
1869
1869
1870
1870
Attaches an event listener to the element. Theevent type is denoted by the argument. The expression can be a method name, an inline statement, or omitted if there are modifiers present.
1871
1871
1872
-
Starting in2.4.0+, `v-on` also supports binding to an object ofevent/listener pairs without an argument. Note when using the object syntax, it does not support any modifiers.
1873
-
1874
1872
When used on a normal element, it listens to [**native DOM events**](https://developer.mozilla.org/en-US/docs/Web/Events) only. When used on a custom element component, it listens to **custom events** emitted on that child component.
1875
1873
1876
1874
When listening to native DOM events, the method receives the native event as the only argument. If using inline statement, the statement has access to the special `$event` property:`v-on:click="handle('ok', $event)"`.
1877
1875
1876
+
Starting in2.4.0+, `v-on` also supports binding to an object ofevent/listener pairs without an argument. Note when using the object syntax, it does not support any modifiers.
0 commit comments