fix(sfc/scoped-style): inherit scopeId through nested HOCs with inheritAttrs: false

fix #1988
This commit is contained in:
Evan You
2020-09-01 18:56:02 -04:00
parent 5b82c48c7b
commit c0427b45ff
6 changed files with 120 additions and 42 deletions

View File

@@ -595,7 +595,7 @@ describe('ssr: renderToStream', () => {
}
expect(await renderToStream(h(Parent))).toBe(
`<div data-v-test data-v-child><span data-v-test data-v-child-s>slot</span></div>`
`<div data-v-child data-v-test><span data-v-test data-v-child-s>slot</span></div>`
)
})
})

View File

@@ -551,7 +551,7 @@ describe('ssr: renderToString', () => {
}
expect(await renderToString(h(Parent))).toBe(
`<div data-v-test data-v-child><span data-v-test data-v-child-s>slot</span></div>`
`<div data-v-child data-v-test><span data-v-test data-v-child-s>slot</span></div>`
)
})
})