Skip to content

Commit 60a3cfc

Browse files
AllySuJustineo
AllySu
authored andcommitted
Update components.md (#730)
1 parent c58a138 commit 60a3cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Vue.component('my-component-name', {
142142

143143
早些时候,我们提到了创建一个博文组件的事情。问题是如果你不能向这个组件传递某一篇博文的标题或内容之类的我们想展示的数据的话,它是没有办法使用的。这也正是 prop 的由来。
144144

145-
Prop 是你可以在组件上注册一些的自定义特性。当一个值传递给一个 prop 特性的时候,它就变成了那个组件实例的一个属性。为了给博文组件传递一个标题,我们可以用一个 `props` 选项将其包含在该组件可接受的 prop 列表中:
145+
Prop 是你可以在组件上注册的一些自定义特性。当一个值传递给一个 prop 特性的时候,它就变成了那个组件实例的一个属性。为了给博文组件传递一个标题,我们可以用一个 `props` 选项将其包含在该组件可接受的 prop 列表中:
146146

147147
```js
148148
Vue.component('blog-post', {

0 commit comments

Comments
 (0)