refactor(ssr): adjust ssr fragment anchor content
This commit is contained in:
@@ -219,11 +219,11 @@ describe('ssr: components', () => {
|
||||
foo: ({ list }, _push, _parent, _scopeId) => {
|
||||
if (_push) {
|
||||
if (_ctx.ok) {
|
||||
_push(\`<div\${_scopeId}><!--1-->\`)
|
||||
_push(\`<div\${_scopeId}><!--[-->\`)
|
||||
_ssrRenderList(list, (i) => {
|
||||
_push(\`<span\${_scopeId}></span>\`)
|
||||
})
|
||||
_push(\`<!--0--></div>\`)
|
||||
_push(\`<!--]--></div>\`)
|
||||
} else {
|
||||
_push(\`<!---->\`)
|
||||
}
|
||||
@@ -242,11 +242,11 @@ describe('ssr: components', () => {
|
||||
bar: ({ ok }, _push, _parent, _scopeId) => {
|
||||
if (_push) {
|
||||
if (ok) {
|
||||
_push(\`<div\${_scopeId}><!--1-->\`)
|
||||
_push(\`<div\${_scopeId}><!--[-->\`)
|
||||
_ssrRenderList(_ctx.list, (i) => {
|
||||
_push(\`<span\${_scopeId}></span>\`)
|
||||
})
|
||||
_push(\`<!--0--></div>\`)
|
||||
_push(\`<!--]--></div>\`)
|
||||
} else {
|
||||
_push(\`<!---->\`)
|
||||
}
|
||||
@@ -281,7 +281,7 @@ describe('ssr: components', () => {
|
||||
.toMatchInlineSnapshot(`
|
||||
"
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!--1--><div></div><!--0-->\`)
|
||||
_push(\`<!--[--><div></div><!--]-->\`)
|
||||
}"
|
||||
`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user