mirror of https://github.com/vuejs/core.git
chore: pass undefined to slotScopeId
This commit is contained in:
parent
21454ce627
commit
4d7a697734
|
@ -44,7 +44,7 @@ describe('ssr: v-show', () => {
|
|||
const _component_Foo = _resolveComponent("Foo")
|
||||
|
||||
_push(\`<div\${_ssrRenderAttrs(_attrs)}>\`)
|
||||
_push(_ssrRenderComponent(_component_Foo, { style: {color:'red'} }, null, _parent, '', {
|
||||
_push(_ssrRenderComponent(_component_Foo, { style: {color:'red'} }, null, _parent, undefined, {
|
||||
style: (_ctx.foo) ? null : { display: "none" }
|
||||
}))
|
||||
_push(\`</div>\`)
|
||||
|
@ -63,7 +63,7 @@ describe('ssr: v-show', () => {
|
|||
|
||||
return function ssrRender(_ctx, _push, _parent, _attrs) {
|
||||
_push(\`<div\${_ssrRenderAttrs(_attrs)}>\`)
|
||||
_ssrRenderVNode(_push, _createVNode(_resolveDynamicComponent("Foo"), { style: {color:'red'} }, null), _parent, '', {
|
||||
_ssrRenderVNode(_push, _createVNode(_resolveDynamicComponent("Foo"), { style: {color:'red'} }, null), _parent, undefined, {
|
||||
style: (_ctx.foo) ? null : { display: "none" }
|
||||
})
|
||||
_push(\`</div>\`)
|
||||
|
|
|
@ -201,7 +201,7 @@ export const ssrTransformComponent: NodeTransform = (node, context) => {
|
|||
]),
|
||||
`_parent`,
|
||||
]
|
||||
if (vShowExp) args.push(`''`, vShowExp)
|
||||
if (vShowExp) args.push(`undefined`, vShowExp)
|
||||
node.ssrCodegenNode = createCallExpression(
|
||||
context.helper(SSR_RENDER_VNODE),
|
||||
args,
|
||||
|
@ -213,7 +213,7 @@ export const ssrTransformComponent: NodeTransform = (node, context) => {
|
|||
slots,
|
||||
`_parent`,
|
||||
]
|
||||
if (vShowExp) args.push(`''`, vShowExp)
|
||||
if (vShowExp) args.push(`undefined`, vShowExp)
|
||||
node.ssrCodegenNode = createCallExpression(
|
||||
context.helper(SSR_RENDER_COMPONENT),
|
||||
args,
|
||||
|
|
Loading…
Reference in New Issue