Skip to content

fix: closed span tags #515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/guide/component-slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ Attributes bound to a `<slot>` element are called **slot props**. Now, in the pa
<todo-list>
<template v-slot:default="slotProps">
<i class="fas fa-check"></i>
<span class="green">{{ slotProps.item }}<span>
<span class="green">{{ slotProps.item }}</span>
</template>
</todo-list>
```
Expand All @@ -290,7 +290,7 @@ In cases like above, when _only_ the default slot is provided content, the compo
```html
<todo-list v-slot:default="slotProps">
<i class="fas fa-check"></i>
<span class="green">{{ slotProps.item }}<span>
<span class="green">{{ slotProps.item }}</span>
</todo-list>
```

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

Expand All @@ -310,7 +310,7 @@ Note that the abbreviated syntax for default slot **cannot** be mixed with named
<todo-list v-slot="slotProps">
<todo-list v-slot:default="slotProps">
<i class="fas fa-check"></i>
<span class="green">{{ slotProps.item }}<span>
<span class="green">{{ slotProps.item }}</span>
</todo-list>
<template v-slot:other="otherSlotProps">
slotProps is NOT available here
Expand All @@ -324,7 +324,7 @@ Whenever there are multiple slots, use the full `<template>` based syntax for _a
<todo-list>
<template v-slot:default="slotProps">
<i class="fas fa-check"></i>
<span class="green">{{ slotProps.item }}<span>
<span class="green">{{ slotProps.item }}</span>
</template>

<template v-slot:other="otherSlotProps">
Expand Down Expand Up @@ -357,7 +357,7 @@ This can make the template much cleaner, especially when the slot provides many
```html
<todo-list v-slot="{ item: todo }">
<i class="fas fa-check"></i>
<span class="green">{{ todo }}<span>
<span class="green">{{ todo }}</span>
</todo-list>
```

Expand Down