File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ Vue には [Web Components spec draft](https://github.com/w3c/webcomponents/blob
222
222
</footer >
223
223
</div >
224
224
```
225
- ** ` v-slot ` は([ 一つの例外] ( #デフォルトスロットしかない場合の省略記法 ) を除き) ` <template> ` にしか指定できないことに注意してください。
225
+ ** ` v-slot ` は([ 一つの例外] ( #デフォルトスロットしかない場合の省略記法 ) を除き) ` <template> ` にしか指定できないことに注意してください。
226
226
227
227
## スコープ付きスロット
228
228
@@ -247,7 +247,7 @@ app.component('todo-list', {
247
247
})
248
248
```
249
249
250
- 親コンポーネントでこれをカスタマイズするために、スロットに交換してもよいでしょう :
250
+ 親コンポーネントでこれをカスタマイズするために、` {{ item }} ` を ` <slot> ` に置き換えたい場合があります :
251
251
252
252
253
253
``` html
@@ -311,7 +311,7 @@ app.component('todo-list', {
311
311
<todo-list v-slot =" slotProps" >
312
312
<i class =" fas fa-check" ></i >
313
313
<span class =" green" >{{ slotProps.item }}</span >
314
-
314
+
315
315
<template v-slot:other =" otherSlotProps" >
316
316
slotProps is NOT available here
317
317
</template >
You can’t perform that action at this time.
0 commit comments