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

Sign up
Appearance settings

Commit 6e93e9c

Browse files
authored
Merge pull request vuejs#335 from YXDay/2.0-cn
修正作用域插槽(scoped slot)的部分翻译
2 parents 79585a1 + 20210a0 commit 6e93e9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/v2/guide/components.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ Vue.component('child-component', {
820820

821821
> 2.1.0 新增
822822
823-
作用域插槽是一种特殊类型的插槽,用作使用一个(能够传递数据到)可重用模板替换已渲染元素
823+
作用域插槽是一种特殊类型的插槽,用作(可以传入数据的)可重用模板,而不是已渲染元素
824824

825825
在子组件中,只需将数据传递到插槽,就像你将 prop 传递给组件一样:
826826

@@ -858,7 +858,7 @@ Vue.component('child-component', {
858858

859859
``` html
860860
<my-awesome-list :items="items">
861-
<!-- 作用域插槽也可以在这里命名 -->
861+
<!-- 作用域插槽也可以被命名 -->
862862
<template slot="item" scope="props">
863863
<li class="my-fancy-item">{{ props.text }}</li>
864864
</template>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /