]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types: fix types
authorEvan You <yyx990803@gmail.com>
Wed, 3 Oct 2018 14:30:14 +0000 (10:30 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 3 Oct 2018 14:30:14 +0000 (10:30 -0400)
packages/core/src/createRenderer.ts

index 4eb75d0e3a5b037fbe0edc2d65d4146009a4e7ab..d737ea1a90e3b8afc7f9249d15000c343df14686 100644 (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,