Skip to content

Commit decc56e

Browse files
authored
Merge pull request #215 from skiy/patch-1
Update components.md
2 parents 5543822 + 40d4b52 commit decc56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ Vue.component('child-component', {
745745

746746
### 具名Slots
747747

748-
`<slot>` 元素可以用一个特殊特性, `name` ,配置如何分发内容。多个 slot 可以有不同的名字。具名 slot 将匹配内容片段中有对应 `slot` 特性的元素。
748+
`<slot>` 元素可以用一个特殊的属性 `name` 来配置如何分发内容。多个 slot 可以有不同的名字。具名 slot 将匹配内容片段中有对应 `slot` 特性的元素。
749749

750750
仍然可以有一个匿名 slot ,它是**默认 slot** ,作为找不到匹配的内容片段的回退插槽。如果没有默认的 slot ,这些找不到匹配的内容片段将被抛弃。
751751

0 commit comments

Comments
 (0)