File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -236,20 +236,21 @@ export default {
236
236
}
237
237
const htmlBinding = this .componentMap [this .activeComponent ].htmlList
238
238
239
- data += " data () {\n return {\n "
239
+ data += " data() {\n return {\n "
240
240
htmlBinding .forEach (el => {
241
241
if (el .binding !== ' ' ) {
242
- data += ` "${ el .binding } ": "PLACEHOLDER FOR VALUE", `
242
+ data += ` "${ el .binding } ": "PLACEHOLDER FOR VALUE", `
243
243
data += ' \n '
244
244
}
245
245
})
246
- data += ` \n } \n `
246
+ data += ` }`
247
+ data += ` \n }, \n `
247
248
248
249
249
250
// if true add computed section and populate with state
250
251
let computed = " " ;
251
252
if (this .componentMap [this .activeComponent ].state .length ) {
252
- computed += " computed: {" ;
253
+ computed += " computed: {" ;
253
254
computed += " \n ...mapState([" ;
254
255
this .componentMap [this .activeComponent ].state .forEach ((state ) => {
255
256
computed += ` \n "${ state} ", ` ;
@@ -298,7 +299,7 @@ export default {
298
299
output += imports + " \n export default defineComponent ({\n name: '" + componentName + " ';" ;
299
300
} else {
300
301
output = " \n\n <script>\n " ;
301
- output += imports + " \n export default {\n name: '" + componentName + " '; " ;
302
+ output += imports + " \n export default {\n name: '" + componentName + " '" ;
302
303
}
303
304
output += " ,\n components: {\n " ;
304
305
output += childrenComponentNames + " },\n " ;
You can’t perform that action at this time.
0 commit comments