Skip to content

Commit f283cbb

Browse files
fix: closed span tags, close #489
1 parent 492e356 commit f283cbb

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
@@ -252,7 +252,7 @@ We might want to replace the slot to customize it on parent component:
252252
```html
253253
<todo-list>
254254
<i class="fas fa-check"></i>
255-
<span class="green">{{ item }}<span>
255+
<span class="green">{{ item }}</span>
256256
</todo-list>
257257
```
258258

@@ -279,7 +279,7 @@ Attributes bound to a `<slot>` element are called **slot props**. Now, in the pa
279279
</todo-list>
280280
```
281281

282-
<img src="/images/scoped-slot.png" width="611" height="auto" style="display: block; margin: 0 auto; max-width: 100%;" loading="lazy" alt="Scoped slot diagram">
282+
<img src="/images/scoped-slot.png" width="611" height="auto" style="display: block; margin: 0 auto; max-width: 100%;" loading="lazy" alt="Scoped slot diagram">
283283

284284
In this example, we've chosen to name the object containing all our slot props `slotProps`, but you can use any name you like.
285285

@@ -348,7 +348,7 @@ That means the value of `v-slot` can actually accept any valid JavaScript expres
348348
```html
349349
<todo-list v-slot="{ item }">
350350
<i class="fas fa-check"></i>
351-
<span class="green">{{ item }}<span>
351+
<span class="green">{{ item }}</span>
352352
</todo-list>
353353
```
354354

@@ -366,7 +366,7 @@ You can even define fallbacks, to be used in case a slot prop is undefined:
366366
```html
367367
<todo-list v-slot="{ item = 'Placeholder' }">
368368
<i class="fas fa-check"></i>
369-
<span class="green">{{ item }}<span>
369+
<span class="green">{{ item }}</span>
370370
</todo-list>
371371
```
372372

@@ -410,7 +410,7 @@ However, just as with other directives, the shorthand is only available when an
410410

411411
<todo-list #="{ item }">
412412
<i class="fas fa-check"></i>
413-
<span class="green">{{ item }}<span>
413+
<span class="green">{{ item }}</span>
414414
</todo-list>
415415
```
416416

@@ -419,6 +419,6 @@ Instead, you must always specify the name of the slot if you wish to use the sho
419419
```html
420420
<todo-list #default="{ item }">
421421
<i class="fas fa-check"></i>
422-
<span class="green">{{ item }}<span>
422+
<span class="green">{{ item }}</span>
423423
</todo-list>
424424
```

0 commit comments

Comments
 (0)