We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853e7d2 commit 18adfb3Copy full SHA for 18adfb3
src/guide/migration/slots-unification.md
@@ -32,15 +32,13 @@ this.$scopedSlots.header
32
33
## 3.x Syntax
34
35
-In 3.x, render functions will have a `slots` option where they can be defined instead.
+In 3.x, slots are defined as children of the current node as an object:
36
37
```js
38
// 3.x Syntax
39
-h(LayoutComponent, {
40
- slots: {
41
- header: () => h('div', this.header),
42
- content: () => h('div', this.content)
43
- }
+h(LayoutComponent, {}, {
+ header: () => h('div', this.header),
+ content: () => h('div', this.content)
44
})
45
```
46
0 commit comments