types: fix types

This commit is contained in:
Evan You 2018-10-03 10:30:14 -04:00
parent f3d7c9e152
commit 74265190f2

View File

@ -235,7 +235,7 @@ export function createRenderer(options: RendererOptions) {
) {
const { tag, data, slots } = vnode
const render = tag as FunctionalComponent
const { props, attrs } = resolveProps(data, render.props, render)
const { props, attrs } = resolveProps(data, render.props)
const subTree = (vnode.children = normalizeComponentRoot(
render(props, slots || EMPTY_OBJ, attrs || EMPTY_OBJ),
vnode,
@ -523,7 +523,7 @@ export function createRenderer(options: RendererOptions) {
}
if (shouldUpdate) {
const { props, attrs } = resolveProps(nextData, render.props, render)
const { props, attrs } = resolveProps(nextData, render.props)
const nextTree = (nextVNode.children = normalizeComponentRoot(
render(props, nextSlots || EMPTY_OBJ, attrs || EMPTY_OBJ),
nextVNode,