Skip to content

Commit 18adfb3

Browse files
authored
Fix render function slots implementation (#365)
1 parent 853e7d2 commit 18adfb3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/guide/migration/slots-unification.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ this.$scopedSlots.header
3232

3333
## 3.x Syntax
3434

35-
In 3.x, render functions will have a `slots` option where they can be defined instead.
35+
In 3.x, slots are defined as children of the current node as an object:
3636

3737
```js
3838
// 3.x Syntax
39-
h(LayoutComponent, {
40-
slots: {
41-
header: () => h('div', this.header),
42-
content: () => h('div', this.content)
43-
}
39+
h(LayoutComponent, {}, {
40+
header: () => h('div', this.header),
41+
content: () => h('div', this.content)
4442
})
4543
```
4644

0 commit comments

Comments
 (0)