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 @@ -4,28 +4,29 @@ const templateTag = (type: string, language: string) => {
44 <div>
55 ${ type === 'layout' ? '<slot />' : '' }
66 </div>
7- </template>\n\n`
7+ </template>\n
8+ `
89 } else {
910 return `<template>
1011 div
1112 ${ type === 'layout' ? 'slot' : '' }
12- </template>\n\n`
13+ </template>\n
14+ `
1315 }
1416}
1517
1618function generateStyleTag ( lang : string , scoped : boolean ) {
1719 return `
1820<style${ lang === 'css' ? '' : ` lang="${ lang } "` } ${ scoped ? ' scoped' : '' } >
1921
20- </style>
22+ </style>\n
2123`
2224}
2325
2426function generateScriptTag ( scriptType : string , lang : string ) {
2527 return `<script${ lang === 'ts' ? ' lang="ts"' : '' } ${ scriptType === 'setup' ? ' setup' : '' } >
2628
27- </script>\n\n
28- `
29+ </script>\n`
2930}
3031
3132export { generateStyleTag , generateScriptTag , templateTag }
You can’t perform that action at this time.
0 commit comments