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")
|
const _component_Foo = _resolveComponent("Foo")
|
||||||
|
|
||||||
_push(\`<div\${_ssrRenderAttrs(_attrs)}>\`)
|
_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" }
|
style: (_ctx.foo) ? null : { display: "none" }
|
||||||
}))
|
}))
|
||||||
_push(\`</div>\`)
|
_push(\`</div>\`)
|
||||||
|
@ -63,7 +63,7 @@ describe('ssr: v-show', () => {
|
||||||
|
|
||||||
return function ssrRender(_ctx, _push, _parent, _attrs) {
|
return function ssrRender(_ctx, _push, _parent, _attrs) {
|
||||||
_push(\`<div\${_ssrRenderAttrs(_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" }
|
style: (_ctx.foo) ? null : { display: "none" }
|
||||||
})
|
})
|
||||||
_push(\`</div>\`)
|
_push(\`</div>\`)
|
||||||
|
|
|
@ -201,7 +201,7 @@ export const ssrTransformComponent: NodeTransform = (node, context) => {
|
||||||
]),
|
]),
|
||||||
`_parent`,
|
`_parent`,
|
||||||
]
|
]
|
||||||
if (vShowExp) args.push(`''`, vShowExp)
|
if (vShowExp) args.push(`undefined`, vShowExp)
|
||||||
node.ssrCodegenNode = createCallExpression(
|
node.ssrCodegenNode = createCallExpression(
|
||||||
context.helper(SSR_RENDER_VNODE),
|
context.helper(SSR_RENDER_VNODE),
|
||||||
args,
|
args,
|
||||||
|
@ -213,7 +213,7 @@ export const ssrTransformComponent: NodeTransform = (node, context) => {
|
||||||
slots,
|
slots,
|
||||||
`_parent`,
|
`_parent`,
|
||||||
]
|
]
|
||||||
if (vShowExp) args.push(`''`, vShowExp)
|
if (vShowExp) args.push(`undefined`, vShowExp)
|
||||||
node.ssrCodegenNode = createCallExpression(
|
node.ssrCodegenNode = createCallExpression(
|
||||||
context.helper(SSR_RENDER_COMPONENT),
|
context.helper(SSR_RENDER_COMPONENT),
|
||||||
args,
|
args,
|
||||||
|
|
Loading…
Reference in New Issue