refactor(fragments): remove visible anchors for fragments
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}><!---->\`)
|
||||
_push(\`<div\${_scopeId}>\`)
|
||||
_ssrRenderList(list, (i) => {
|
||||
_push(\`<span\${_scopeId}></span>\`)
|
||||
})
|
||||
_push(\`<!----></div>\`)
|
||||
_push(\`</div>\`)
|
||||
} else {
|
||||
_push(\`<!---->\`)
|
||||
}
|
||||
@@ -242,11 +242,11 @@ describe('ssr: components', () => {
|
||||
bar: ({ ok }, _push, _parent, _scopeId) => {
|
||||
if (_push) {
|
||||
if (ok) {
|
||||
_push(\`<div\${_scopeId}><!---->\`)
|
||||
_push(\`<div\${_scopeId}>\`)
|
||||
_ssrRenderList(_ctx.list, (i) => {
|
||||
_push(\`<span\${_scopeId}></span>\`)
|
||||
})
|
||||
_push(\`<!----></div>\`)
|
||||
_push(\`</div>\`)
|
||||
} else {
|
||||
_push(\`<!---->\`)
|
||||
}
|
||||
@@ -283,7 +283,7 @@ describe('ssr: components', () => {
|
||||
.toMatchInlineSnapshot(`
|
||||
"
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!----><div></div><!---->\`)
|
||||
_push(\`<div></div>\`)
|
||||
}"
|
||||
`)
|
||||
|
||||
@@ -305,7 +305,7 @@ describe('ssr: components', () => {
|
||||
.toMatchInlineSnapshot(`
|
||||
"
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!----><div></div><!---->\`)
|
||||
_push(\`<div></div>\`)
|
||||
}"
|
||||
`)
|
||||
})
|
||||
|
||||
@@ -6,11 +6,9 @@ describe('ssr: v-for', () => {
|
||||
"const { ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
||||
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!---->\`)
|
||||
_ssrRenderList(_ctx.list, (i) => {
|
||||
_push(\`<div></div>\`)
|
||||
})
|
||||
_push(\`<!---->\`)
|
||||
}"
|
||||
`)
|
||||
})
|
||||
@@ -21,11 +19,9 @@ describe('ssr: v-for', () => {
|
||||
"const { ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
||||
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!---->\`)
|
||||
_ssrRenderList(_ctx.list, (i) => {
|
||||
_push(\`<div>foo<span>bar</span></div>\`)
|
||||
})
|
||||
_push(\`<!---->\`)
|
||||
}"
|
||||
`)
|
||||
})
|
||||
@@ -41,9 +37,8 @@ describe('ssr: v-for', () => {
|
||||
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
||||
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!---->\`)
|
||||
_ssrRenderList(_ctx.list, (row, i) => {
|
||||
_push(\`<div><!---->\`)
|
||||
_push(\`<div>\`)
|
||||
_ssrRenderList(row, (j) => {
|
||||
_push(\`<div>\${
|
||||
_ssrInterpolate(i)
|
||||
@@ -51,9 +46,8 @@ describe('ssr: v-for', () => {
|
||||
_ssrInterpolate(j)
|
||||
}</div>\`)
|
||||
})
|
||||
_push(\`<!----></div>\`)
|
||||
_push(\`</div>\`)
|
||||
})
|
||||
_push(\`<!---->\`)
|
||||
}"
|
||||
`)
|
||||
})
|
||||
@@ -64,11 +58,9 @@ describe('ssr: v-for', () => {
|
||||
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
||||
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!---->\`)
|
||||
_ssrRenderList(_ctx.list, (i) => {
|
||||
_push(\`<!---->\${_ssrInterpolate(i)}<!---->\`)
|
||||
_push(\`\${_ssrInterpolate(i)}\`)
|
||||
})
|
||||
_push(\`<!---->\`)
|
||||
}"
|
||||
`)
|
||||
})
|
||||
@@ -81,11 +73,9 @@ describe('ssr: v-for', () => {
|
||||
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
||||
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!---->\`)
|
||||
_ssrRenderList(_ctx.list, (i) => {
|
||||
_push(\`<span>\${_ssrInterpolate(i)}</span>\`)
|
||||
})
|
||||
_push(\`<!---->\`)
|
||||
}"
|
||||
`)
|
||||
})
|
||||
@@ -99,15 +89,13 @@ describe('ssr: v-for', () => {
|
||||
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
||||
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!---->\`)
|
||||
_ssrRenderList(_ctx.list, (i) => {
|
||||
_push(\`<!----><span>\${
|
||||
_push(\`<span>\${
|
||||
_ssrInterpolate(i)
|
||||
}</span><span>\${
|
||||
_ssrInterpolate(i + 1)
|
||||
}</span><!---->\`)
|
||||
}</span>\`)
|
||||
})
|
||||
_push(\`<!---->\`)
|
||||
}"
|
||||
`)
|
||||
})
|
||||
@@ -123,11 +111,9 @@ describe('ssr: v-for', () => {
|
||||
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
||||
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
_push(\`<!---->\`)
|
||||
_ssrRenderList(_ctx.list, ({ foo }, index) => {
|
||||
_push(\`<div>\${_ssrInterpolate(foo + _ctx.bar + index)}</div>\`)
|
||||
})
|
||||
_push(\`<!---->\`)
|
||||
}"
|
||||
`)
|
||||
})
|
||||
|
||||
@@ -80,7 +80,7 @@ describe('ssr: v-if', () => {
|
||||
"
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
if (_ctx.foo) {
|
||||
_push(\`<!---->hello<!---->\`)
|
||||
_push(\`hello\`)
|
||||
} else {
|
||||
_push(\`<!---->\`)
|
||||
}
|
||||
@@ -110,7 +110,7 @@ describe('ssr: v-if', () => {
|
||||
"
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
if (_ctx.foo) {
|
||||
_push(\`<!----><div>hi</div><div>ho</div><!---->\`)
|
||||
_push(\`<div>hi</div><div>ho</div>\`)
|
||||
} else {
|
||||
_push(\`<!---->\`)
|
||||
}
|
||||
@@ -126,11 +126,9 @@ describe('ssr: v-if', () => {
|
||||
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
if (_ctx.foo) {
|
||||
_push(\`<!---->\`)
|
||||
_ssrRenderList(_ctx.list, (i) => {
|
||||
_push(\`<div></div>\`)
|
||||
})
|
||||
_push(\`<!---->\`)
|
||||
} else {
|
||||
_push(\`<!---->\`)
|
||||
}
|
||||
@@ -147,7 +145,7 @@ describe('ssr: v-if', () => {
|
||||
"
|
||||
return function ssrRender(_ctx, _push, _parent) {
|
||||
if (_ctx.foo) {
|
||||
_push(\`<!----><div>hi</div><div>ho</div><!---->\`)
|
||||
_push(\`<div>hi</div><div>ho</div>\`)
|
||||
} else {
|
||||
_push(\`<div></div>\`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user