Skip to content

Commit

Permalink
fix: pass element creation helper to static render fns for functional…
Browse files Browse the repository at this point in the history
… components

fix #12625
  • Loading branch information
yyx990803 committed Jul 8, 2022
1 parent 8904ca7 commit dc8a68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/instance/render-helpers/render-static.ts
Expand Up @@ -18,7 +18,7 @@ export function renderStatic(
// otherwise, render a fresh tree.
tree = cached[index] = this.$options.staticRenderFns[index].call(
this._renderProxy,
null,
this._c,
this // for render fns generated for functional component templates
)
markStatic(tree, `__static__${index}`, false)
Expand Down

1 comment on commit dc8a68e

@bzc19970725
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

怎么一直在提交?崽种

Please sign in to comment.