Skip to content

Commit 9c1d767

Browse files
committed
1 parent 6f78716 commit 9c1d767

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/guide/component-slots.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ app.component('todo-list', {
275275
<todo-list>
276276
<template v-slot:default="slotProps">
277277
<i class="fas fa-check"></i>
278-
<span class="green">{{ slotProps.item }}<span>
278+
<span class="green">{{ slotProps.item }}</span>
279279
</template>
280280
</todo-list>
281281
```
@@ -291,7 +291,7 @@ app.component('todo-list', {
291291
```html
292292
<todo-list v-slot:default="slotProps">
293293
<i class="fas fa-check"></i>
294-
<span class="green">{{ slotProps.item }}<span>
294+
<span class="green">{{ slotProps.item }}</span>
295295
</todo-list>
296296
```
297297

@@ -300,7 +300,7 @@ app.component('todo-list', {
300300
```html
301301
<todo-list v-slot="slotProps">
302302
<i class="fas fa-check"></i>
303-
<span class="green">{{ slotProps.item }}<span>
303+
<span class="green">{{ slotProps.item }}</span>
304304
</todo-list>
305305
```
306306

@@ -311,7 +311,7 @@ app.component('todo-list', {
311311
<todo-list v-slot="slotProps">
312312
<todo-list v-slot:default="slotProps">
313313
<i class="fas fa-check"></i>
314-
<span class="green">{{ slotProps.item }}<span>
314+
<span class="green">{{ slotProps.item }}</span>
315315
</todo-list>
316316
<template v-slot:other="otherSlotProps">
317317
slotProps is NOT available here
@@ -325,7 +325,7 @@ app.component('todo-list', {
325325
<todo-list>
326326
<template v-slot:default="slotProps">
327327
<i class="fas fa-check"></i>
328-
<span class="green">{{ slotProps.item }}<span>
328+
<span class="green">{{ slotProps.item }}</span>
329329
</template>
330330

331331
<template v-slot:other="otherSlotProps">
@@ -358,7 +358,7 @@ function (slotProps) {
358358
```html
359359
<todo-list v-slot="{ item: todo }">
360360
<i class="fas fa-check"></i>
361-
<span class="green">{{ todo }}<span>
361+
<span class="green">{{ todo }}</span>
362362
</todo-list>
363363
```
364364

0 commit comments

Comments
 (0)