We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6949a3d commit 3659a94Copy full SHA for 3659a94
demo/assets/input.js
@@ -1,12 +1,11 @@
1
new Vue({
2
template: `
3
<div>
4
- <input v-model="value" type="checkbox" :name="cname">
+ <input v-model="value" type="checkbox">
5
<h1 v-if="value">I am checked</h1>
6
</div>`,
7
data() {
8
return {
9
- cname: "myCheck",
10
value: false
11
};
12
}
src/Preview.vue
@@ -85,9 +85,12 @@ export default {
85
86
87
data.components = this.components;
88
+ if (style) {
89
+ data._scopeId = `data-${this.scope}`;
90
+ addScopedStyle(style, this.scope);
91
+ }
92
93
this.$options.components.VuePreview = data;
- addScopedStyle(style, this.scope);
94
95
96
0 commit comments