Skip to content

Commit 2bd9737

Browse files
authored
add corresponding scoped slot template comment to render function example (#2533)
1 parent 33b7481 commit 2bd9737

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/v2/guide/render-function.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ To pass scoped slots to a child component using render functions, use the `scope
441441

442442
``` js
443443
render: function (createElement) {
444+
// `<div><child v-slot="props"><span>{{ props.text }}</span></child></div>`
444445
return createElement('div', [
445446
createElement('child', {
446447
// pass `scopedSlots` in the data object

0 commit comments

Comments
 (0)