fix(runtime-core): respect render function from mixins

fix #1630
This commit is contained in:
Evan You
2020-07-27 17:44:17 -04:00
parent 71c3c6e2a0
commit 354d79c42b
3 changed files with 40 additions and 21 deletions

View File

@@ -520,6 +520,17 @@ describe('api: options', () => {
])
})
test('render from mixin', () => {
const Comp = {
mixins: [
{
render: () => 'from mixin'
}
]
}
expect(renderToString(h(Comp))).toBe('from mixin')
})
test('extends', () => {
const calls: string[] = []
const Base = {