Evan You пре 7 година
родитељ
комит
74265190f2
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      packages/core/src/createRenderer.ts

+ 2 - 2
packages/core/src/createRenderer.ts

@@ -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,