Skip to content

Commit a2f811f

Browse files
authored
docs: update component-slots.md (#685)
* docs: update component-slots.md * doc: update component-slots.md
1 parent dbeed5b commit a2f811f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/guide/component-slots.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,9 @@ Note that the abbreviated syntax for default slot **cannot** be mixed with named
308308
```html
309309
<!-- INVALID, will result in warning -->
310310
<todo-list v-slot="slotProps">
311-
<todo-list v-slot:default="slotProps">
312-
<i class="fas fa-check"></i>
313-
<span class="green">{{ slotProps.item }}</span>
314-
</todo-list>
311+
<i class="fas fa-check"></i>
312+
<span class="green">{{ slotProps.item }}</span>
313+
315314
<template v-slot:other="otherSlotProps">
316315
slotProps is NOT available here
317316
</template>

0 commit comments

Comments
 (0)