Skip to content

Commit 57e2c0e

Browse files
committed
Update components-slots.md
Added missing `name` for slot “todo”.
1 parent 02f76dc commit 57e2c0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components-slots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ function (slotProps) {
426426
我们为每个 todo 准备了一个插槽,
427427
将 `todo` 对象作为一个插槽的 prop 传入。
428428
-->
429-
<slot v-bind:todo="todo">
429+
<slot name="todo" v-bind:todo="todo">
430430
<!-- 后备内容 -->
431431
{{ todo.text }}
432432
</slot>

0 commit comments

Comments
 (0)