Skip to content

Commit 51d1b57

Browse files
authored
corresponding 是相对应的意思,不是 响应
Each named slot has its own corresponding property
1 parent 2187a8d commit 51d1b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ type: api
915915

916916
- **详细:**
917917

918-
用来访问被 [slot 分发](/guide/components.html#Content-Distribution-with-Slots)的内容。每个[具名 slot](/guide/components.html#Named-Slots) 有其响应的属性(例如:`slot="foo"` 中的内容将会在 `vm.$slots.foo` 中被找到)。`default` 属性包括了所有没有被包含在一个具名 slot 中的节点。
918+
用来访问被 [slot 分发](/guide/components.html#Content-Distribution-with-Slots)的内容。每个[具名 slot](/guide/components.html#Named-Slots) 有其相应的属性(例如:`slot="foo"` 中的内容将会在 `vm.$slots.foo` 中被找到)。`default` 属性包括了所有没有被包含在一个具名 slot 中的节点。
919919

920920
在使用 [render 函数](/guide/render-function.html)书写一个组件时,访问 `vm.$slots` 最有帮助。
921921

0 commit comments

Comments
 (0)