Skip to content

Commit 46d3fcd

Browse files
authored
Update render-function.md
Translate untranslated sentence.
1 parent f1ac856 commit 46d3fcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/render-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ render: function (createElement) {
360360
}
361361
```
362362

363-
And access scoped slots as functions that return VNodes from [`this.$scopedSlots`](http://vuejs.org/v2/api/#vm-scopedSlots):
363+
还可以从[`this.$scopedSlots`](http://vuejs.org/v2/api/#vm-scopedSlots) 中获得能用作函数的作用域插槽,这个函数返回 VNodes:
364364

365365
``` js
366366
render: function (createElement) {
@@ -373,7 +373,7 @@ render: function (createElement) {
373373
}
374374
```
375375

376-
To pass scoped slots to a child component using render functions, use the `scopedSlots` field in VNode data:
376+
如果要用 render 函数向子组件中传递作用域插槽,可以利用VNode数据中的 `scopedSlots`域:
377377

378378
``` js
379379
render (createElement) {

0 commit comments

Comments
 (0)