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/guide/components/events.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -176,9 +176,9 @@ export default {
176
176
177
177
</div>
178
178
179
-
<divclass="composition-api">
179
+
The <spanclass="composition-api">`defineEmits()` macro</span><spanclass="composition-api">`emits` option</span> also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
180
180
181
-
The `defineEmits()` macro also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
181
+
<divclass="composition-api">
182
182
183
183
```vue
184
184
<script setup>
@@ -207,8 +207,6 @@ More details: [Typing Component Emits](/guide/typescript/composition-api#typing-
207
207
</div>
208
208
<divclass="options-api">
209
209
210
-
The `emits` option also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
0 commit comments