fix(runtime-core): fix resolving inheritAttrs from mixins (#3742)

fix #3741
This commit is contained in:
edison
2021-05-28 09:53:41 +08:00
committed by GitHub
parent 9b2e894017
commit d6607c9864
5 changed files with 65 additions and 21 deletions

View File

@@ -132,8 +132,7 @@ function renderComponentSubTree(
if (ssrRender) {
// optimized
// resolve fallthrough attrs
let attrs =
instance.type.inheritAttrs !== false ? instance.attrs : undefined
let attrs = instance.inheritAttrs !== false ? instance.attrs : undefined
let hasCloned = false
let cur = instance