fix(compiler-ssr): fix SSR issue when dynamic and static class co-exist (#2354)
This commit is contained in:
@@ -112,6 +112,15 @@ describe('ssr: element', () => {
|
||||
`)
|
||||
})
|
||||
|
||||
test('v-bind:class + static class', () => {
|
||||
expect(getCompiledString(`<div :class="bar" class="foo"></div>`))
|
||||
.toMatchInlineSnapshot(`
|
||||
"\`<div class=\\"\${
|
||||
_ssrRenderClass([_ctx.bar, \\"foo\\"])
|
||||
}\\"></div>\`"
|
||||
`)
|
||||
})
|
||||
|
||||
test('v-bind:style', () => {
|
||||
expect(getCompiledString(`<div id="foo" :style="bar"></div>`))
|
||||
.toMatchInlineSnapshot(`
|
||||
|
||||
Reference in New Issue
Block a user