File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ bus.$on('id-selected', function (id) {
660
660
661
661
2 . ` <app> ` 组件很可能有它自己的模版。
662
662
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> ` 元素作为原始内容的插槽。
664
664
665
665
### 编译作用域
666
666
@@ -994,7 +994,7 @@ template: '<div><stack-overflow></stack-overflow></div>'
994
994
<div >
995
995
<p >These are compiled as the component's own template.</p >
996
996
<p >Not parent's transclusion content.</p >
997
- </div >
997
+ </div >
998
998
</my-component >
999
999
```
1000
1000
You can’t perform that action at this time.
0 commit comments