Skip to content

Commit 12f355e

Browse files
committed
minor updates to export functionality
co-authored by: Terry Tilley [email protected]
1 parent 9679024 commit 12f355e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/file_system_interface/ExportProject.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,17 @@ export default {
298298
output += '};\n<\/script>'
299299
return output
300300
}
301-
301+
302302
else{
303303
let str = ''
304304
children.forEach(name => {
305305
str += `import ${name} from '@/components/${name}.vue';\n`
306306
})
307307
let childrenComponentNames = ''
308308
children.forEach(name => {
309-
childrenComponentNames += `\t\t${name},\n`
309+
childrenComponentNames += ` ${name},\n`
310310
})
311-
return `\n\n<script>\n${str}\nexport default {\n\tname: '${componentName}',
312-
\n\tcomponents: {\n${childrenComponentNames}\t}\n};\n<\/script>`
311+
return `\n\n<script>\n${str}\nexport default {\n name: '${componentName}',\n components: {\n${childrenComponentNames} }\n};\n<\/script>`
313312
}
314313
315314
},

0 commit comments

Comments
 (0)