8000 Merge pull request #237 from athena0304/2.0-cn · vuejs/v2.vuejs.org@bfb4db0 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bfb4db0

Browse files
authored
Merge pull request #237 from athena0304/2.0-cn
修正翻译
2 parents 3049773 + e8f3b1d commit bfb4db0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ bus.$on('id-selected', function (id) {
660660

661661
2. `<app>` 组件很可能有它自己的模版。
662662

663-
为了让组件可以组合,我们需要一种方式来混合父组件的内容与子组件自己的模板。这个处理称为 **内容分发** (或 "transclusion" 如果你熟悉 Angular)。Vue.js 实现了一个内容分发 API ,参照了当前 [Web组件规范草稿](https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Slots-Proposal.md),使用特殊的 `<slot>` 元素作为原始内容的插槽。
663+
为了让组件可以组合,我们需要一种方式来混合父组件的内容与子组件自己的模板。这个处理称为 **内容分发** (或 "transclusion" 如果你熟悉 Angular)。Vue.js 实现了一个内容分发 API ,参照了当前 [Web组件规范草案](https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Slots-Proposal.md),使用特殊的 `<slot>` 元素作为原始内容的插槽。
664664

665665
### 编译作用域
666666

@@ -994,7 +994,7 @@ template: '<div><stack-overflow></stack-overflow></div>'
994994
<div>
995995
<p>These are compiled as the component's own template.</p>
996996
<p>Not parent's transclusion content.</p>
997-
</div>
997+
</div>
998998
</my-component>
999999
```
10001000

0 commit comments

Comments
 (0)
0