|
|
@@ -6,11 +6,11 @@ describe('ssr: v-for', () => {
|
|
|
"const { ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
|
|
|
|
|
return function ssrRender(_ctx, _push, _parent) {
|
|
|
- _push(\`<!--1-->\`)
|
|
|
+ _push(\`<!--[-->\`)
|
|
|
_ssrRenderList(_ctx.list, (i) => {
|
|
|
_push(\`<div></div>\`)
|
|
|
})
|
|
|
- _push(\`<!--0-->\`)
|
|
|
+ _push(\`<!--]-->\`)
|
|
|
}"
|
|
|
`)
|
|
|
})
|
|
|
@@ -21,11 +21,11 @@ describe('ssr: v-for', () => {
|
|
|
"const { ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
|
|
|
|
|
return function ssrRender(_ctx, _push, _parent) {
|
|
|
- _push(\`<!--1-->\`)
|
|
|
+ _push(\`<!--[-->\`)
|
|
|
_ssrRenderList(_ctx.list, (i) => {
|
|
|
_push(\`<div>foo<span>bar</span></div>\`)
|
|
|
})
|
|
|
- _push(\`<!--0-->\`)
|
|
|
+ _push(\`<!--]-->\`)
|
|
|
}"
|
|
|
`)
|
|
|
})
|
|
|
@@ -41,9 +41,9 @@ describe('ssr: v-for', () => {
|
|
|
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
|
|
|
|
|
return function ssrRender(_ctx, _push, _parent) {
|
|
|
- _push(\`<!--1-->\`)
|
|
|
+ _push(\`<!--[-->\`)
|
|
|
_ssrRenderList(_ctx.list, (row, i) => {
|
|
|
- _push(\`<div><!--1-->\`)
|
|
|
+ _push(\`<div><!--[-->\`)
|
|
|
_ssrRenderList(row, (j) => {
|
|
|
_push(\`<div>\${
|
|
|
_ssrInterpolate(i)
|
|
|
@@ -51,9 +51,9 @@ describe('ssr: v-for', () => {
|
|
|
_ssrInterpolate(j)
|
|
|
}</div>\`)
|
|
|
})
|
|
|
- _push(\`<!--0--></div>\`)
|
|
|
+ _push(\`<!--]--></div>\`)
|
|
|
})
|
|
|
- _push(\`<!--0-->\`)
|
|
|
+ _push(\`<!--]-->\`)
|
|
|
}"
|
|
|
`)
|
|
|
})
|
|
|
@@ -64,11 +64,11 @@ describe('ssr: v-for', () => {
|
|
|
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
|
|
|
|
|
return function ssrRender(_ctx, _push, _parent) {
|
|
|
- _push(\`<!--1-->\`)
|
|
|
+ _push(\`<!--[-->\`)
|
|
|
_ssrRenderList(_ctx.list, (i) => {
|
|
|
- _push(\`<!--1-->\${_ssrInterpolate(i)}<!--0-->\`)
|
|
|
+ _push(\`<!--[-->\${_ssrInterpolate(i)}<!--]-->\`)
|
|
|
})
|
|
|
- _push(\`<!--0-->\`)
|
|
|
+ _push(\`<!--]-->\`)
|
|
|
}"
|
|
|
`)
|
|
|
})
|
|
|
@@ -81,11 +81,11 @@ describe('ssr: v-for', () => {
|
|
|
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
|
|
|
|
|
return function ssrRender(_ctx, _push, _parent) {
|
|
|
- _push(\`<!--1-->\`)
|
|
|
+ _push(\`<!--[-->\`)
|
|
|
_ssrRenderList(_ctx.list, (i) => {
|
|
|
_push(\`<span>\${_ssrInterpolate(i)}</span>\`)
|
|
|
})
|
|
|
- _push(\`<!--0-->\`)
|
|
|
+ _push(\`<!--]-->\`)
|
|
|
}"
|
|
|
`)
|
|
|
})
|
|
|
@@ -99,15 +99,15 @@ describe('ssr: v-for', () => {
|
|
|
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
|
|
|
|
|
return function ssrRender(_ctx, _push, _parent) {
|
|
|
- _push(\`<!--1-->\`)
|
|
|
+ _push(\`<!--[-->\`)
|
|
|
_ssrRenderList(_ctx.list, (i) => {
|
|
|
- _push(\`<!--1--><span>\${
|
|
|
+ _push(\`<!--[--><span>\${
|
|
|
_ssrInterpolate(i)
|
|
|
}</span><span>\${
|
|
|
_ssrInterpolate(i + 1)
|
|
|
- }</span><!--0-->\`)
|
|
|
+ }</span><!--]-->\`)
|
|
|
})
|
|
|
- _push(\`<!--0-->\`)
|
|
|
+ _push(\`<!--]-->\`)
|
|
|
}"
|
|
|
`)
|
|
|
})
|
|
|
@@ -123,11 +123,11 @@ describe('ssr: v-for', () => {
|
|
|
"const { ssrInterpolate: _ssrInterpolate, ssrRenderList: _ssrRenderList } = require(\\"@vue/server-renderer\\")
|
|
|
|
|
|
return function ssrRender(_ctx, _push, _parent) {
|
|
|
- _push(\`<!--1-->\`)
|
|
|
+ _push(\`<!--[-->\`)
|
|
|
_ssrRenderList(_ctx.list, ({ foo }, index) => {
|
|
|
_push(\`<div>\${_ssrInterpolate(foo + _ctx.bar + index)}</div>\`)
|
|
|
})
|
|
|
- _push(\`<!--0-->\`)
|
|
|
+ _push(\`<!--]-->\`)
|
|
|
}"
|
|
|
`)
|
|
|
})
|