wip(compiler-ssr): v-bind with static keys

This commit is contained in:
Evan You
2020-02-04 16:47:12 -05:00
parent e71781dcab
commit c059fc88b9
18 changed files with 189 additions and 92 deletions

View File

@@ -45,7 +45,11 @@ describe('ssr: v-for', () => {
_renderList(_ctx.list, (row, i) => {
_push(\`<div><!---->\`)
_renderList(row, (j) => {
_push(\`<div>\${_interpolate(i)},\${_interpolate(j)}</div>\`)
_push(\`<div>\${
_interpolate(i)
},\${
_interpolate(j)
}</div>\`)
})
_push(\`<!----></div>\`)
})
@@ -97,7 +101,11 @@ describe('ssr: v-for', () => {
return function ssrRender(_ctx, _push, _parent) {
_push(\`<!---->\`)
_renderList(_ctx.list, (i) => {
_push(\`<!----><span>\${_interpolate(i)}</span><span>\${_interpolate(i + 1)}</span><!---->\`)
_push(\`<!----><span>\${
_interpolate(i)
}</span><span>\${
_interpolate(i + 1)
}</span><!---->\`)
})
_push(\`<!---->\`)
}"