mirror of https://github.com/vuejs/core.git
fix(runtime-vapor): add scope id for fallback component
This commit is contained in:
parent
c223eb2684
commit
3da5ecfb5f
|
@ -96,7 +96,14 @@ function fallbackComponent(
|
||||||
|
|
||||||
if (singleRoot) {
|
if (singleRoot) {
|
||||||
instance.dynamicAttrs = true
|
instance.dynamicAttrs = true
|
||||||
|
for (let i = 0; i < instance.scopeIds.length; i++) {
|
||||||
|
const id = instance.scopeIds[i]
|
||||||
|
el.setAttribute(id, '')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const scopeId = instance.type.__scopeId
|
||||||
|
if (scopeId) el.setAttribute(scopeId, '')
|
||||||
|
|
||||||
return el
|
return el
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue