types: fix types
This commit is contained in:
parent
f3d7c9e152
commit
74265190f2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user