Skip to content

Commit de2d760

Browse files
authored
Update events.md - in span instead of repeat code in different divs
1 parent 9a957c8 commit de2d760

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/guide/components/events.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ export default {
176176

177177
</div>
178178

179-
<div class="composition-api">
179+
The <span class="composition-api">`defineEmits()` macro</span><span class="composition-api">`emits` option</span> also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
180180

181-
The `defineEmits()` macro also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
181+
<div class="composition-api">
182182

183183
```vue
184184
<script setup>
@@ -207,8 +207,6 @@ More details: [Typing Component Emits](/guide/typescript/composition-api#typing-
207207
</div>
208208
<div class="options-api">
209209

210-
The `emits` option also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
211-
212210
```js
213211
export default {
214212
emits: {

0 commit comments

Comments
 (0)