Skip to content

Commit dee3834

Browse files
committed
1 parent 9f826e9 commit dee3834

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
@@ -309,10 +309,9 @@ app.component('todo-list', {
309309
```html
310310
<!-- 不正。警告が出ます -->
311311
<todo-list v-slot="slotProps">
312-
<todo-list v-slot:default="slotProps">
313-
<i class="fas fa-check"></i>
314-
<span class="green">{{ slotProps.item }}</span>
315-
</todo-list>
312+
<i class="fas fa-check"></i>
313+
<span class="green">{{ slotProps.item }}</span>
314+
316315
<template v-slot:other="otherSlotProps">
317316
slotProps is NOT available here
318317
</template>

0 commit comments

Comments
 (0)