refactor: adjust useCSSVars scoped usage

This commit is contained in:
Evan You
2020-07-10 10:19:16 -04:00
parent 879ea17985
commit 6647e34ce7
2 changed files with 19 additions and 8 deletions

View File

@@ -64,13 +64,14 @@ describe('useCssVars', () => {
}))
})
test('with scopeId', async () => {
test('with <style scoped>', async () => {
const id = 'v-12345'
await assertCssVars(
state => ({
__scopeId: id,
setup() {
useCSSVars(() => state, id)
useCSSVars(() => state, true)
return () => h('div')
}
}),