fix(runtime-core): fix slot fallback + slots typing

fix #773
This commit is contained in:
Evan You
2020-02-24 23:05:35 -05:00
parent 19a799c28b
commit 4a5b91bd1f
3 changed files with 7 additions and 7 deletions

View File

@@ -103,14 +103,14 @@ describe('class', () => {
const component1 = defineComponent({
props: {},
render() {
return this.$slots.default()[0]
return this.$slots.default!()[0]
}
})
const component2 = defineComponent({
props: {},
render() {
return this.$slots.default()[0]
return this.$slots.default!()[0]
}
})
@@ -122,7 +122,7 @@ describe('class', () => {
{
class: 'staticClass'
},
[this.$slots.default()]
[this.$slots.default!()]
)
}
})