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 e870527 commit a7b4a2eCopy full SHA for a7b4a2e
src/components/right-sidebar/CodeSnippet.vue
@@ -226,12 +226,12 @@ export default {
226
// if true add data section and populate with props
227
let data = "";
228
if (this.componentMap[this.activeComponent].props.length) {
229
- data += " data () {\n return {";
+ data += " props: {";
230
this.componentMap[this.activeComponent].props.forEach((prop) => {
231
- data += `\n ${prop}: "PLACEHOLDER FOR VALUE",`;
+ data += `\n ${prop}: "PLACEHOLDER FOR VALUE",`;
232
});
233
data += "\n";
234
- data += " }\n";
+ //data += " }\n";
235
data += " },\n";
236
}
237
const htmlBinding = this.componentMap[this.activeComponent].htmlList
0 commit comments