feat(portal): SSR support for multi portal shared target
This commit is contained in:
@@ -7,7 +7,7 @@ describe('ssr compile: portal', () => {
|
||||
"const { ssrRenderPortal: _ssrRenderPortal } = require(\\"@vue/server-renderer\\")
|
||||
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_ssrRenderPortal((_push) => {
|
||||
_ssrRenderPortal(_push, (_push) => {
|
||||
_push(\`<div></div>\`)
|
||||
}, _ctx.target, _parent)
|
||||
}"
|
||||
|
||||
@@ -52,6 +52,7 @@ export function ssrProcessPortal(
|
||||
contentRenderFn.body = processChildrenAsStatement(node.children, context)
|
||||
context.pushStatement(
|
||||
createCallExpression(context.helper(SSR_RENDER_PORTAL), [
|
||||
`_push`,
|
||||
contentRenderFn,
|
||||
target,
|
||||
`_parent`
|
||||
|
||||
Reference in New Issue
Block a user