-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
Description
Description
When passing code prop as SFC with scoped styles like this:
<template>
<p class="test">
Test
</p>
</template>
<style>
.test {
color: red;
}
</style>vue-live preview does not apply component styles
It's because component options in vue 3 runtime core accepts __scopeId prop (ref), instead of _scopeId like in vue 2 (ref).
If I use __scopeId instead of _scopeId on this line everything works fine.
Line 186 in 1a585e9
| options._scopeId = `data-${this.scope}`; |
I think it should support both _scopeId and __scopeId for both vue 2 & vue 3 compability.