Skip to content

Commit fc1449b

Browse files
authored
fix: closed span tags (#515)
1 parent 9c5e3a2 commit fc1449b

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
@@ -274,7 +274,7 @@ Attributes bound to a `<slot>` element are called **slot props**. Now, in the pa
274274
<todo-list>
275275
<template v-slot:default="slotProps">
276276
<i class="fas fa-check"></i>
277-
<span class="green">{{ slotProps.item }}<span>
277+
<span class="green">{{ slotProps.item }}</span>
278278
</template>
279279
</todo-list>
280280
```
@@ -290,7 +290,7 @@ In cases like above, when _only_ the default slot is provided content, the compo
290290
```html
291291
<todo-list v-slot:default="slotProps">
292292
<i class="fas fa-check"></i>
293-
<span class="green">{{ slotProps.item }}<span>
293+
<span class="green">{{ slotProps.item }}</span>
294294
</todo-list>
295295
```
296296

@@ -299,7 +299,7 @@ This can be shortened even further. Just as non-specified content is assumed to
299299
```html
300300
<todo-list v-slot="slotProps">
301301
<i class="fas fa-check"></i>
302-
<span class="green">{{ slotProps.item }}<span>
302+
<span class="green">{{ slotProps.item }}</span>
303303
</todo-list>
304304
```
305305

@@ -310,7 +310,7 @@ Note that the abbreviated syntax for default slot **cannot** be mixed with named
310310
<todo-list v-slot="slotProps">
311311
<todo-list v-slot:default="slotProps">
312312
<i class="fas fa-check"></i>
313-
<span class="green">{{ slotProps.item }}<span>
313+
<span class="green">{{ slotProps.item }}</span>
314314
</todo-list>
315315
<template v-slot:other="otherSlotProps">
316316
slotProps is NOT available here
@@ -324,7 +324,7 @@ Whenever there are multiple slots, use the full `<template>` based syntax for _a
324324
<todo-list>
325325
<template v-slot:default="slotProps">
326326
<i class="fas fa-check"></i>
327-
<span class="green">{{ slotProps.item }}<span>
327+
<span class="green">{{ slotProps.item }}</span>
328328
</template>
329329

330330
<template v-slot:other="otherSlotProps">
@@ -357,7 +357,7 @@ This can make the template much cleaner, especially when the slot provides many
357357
```html
358358
<todo-list v-slot="{ item: todo }">
359359
<i class="fas fa-check"></i>
360-
<span class="green">{{ todo }}<span>
360+
<span class="green">{{ todo }}</span>
361361
</todo-list>
362362
```
363363

0 commit comments

Comments
 (0)