Skip to content

Commit 783e4fb

Browse files
committed
fix: vue templates spacing
1 parent a57ef93 commit 783e4fb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/templates/vueFiles.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

1618
function generateStyleTag(lang: string, scoped: boolean) {
1719
return `
1820
<style${lang === 'css' ? '' : ` lang="${lang}"`}${scoped ? ' scoped' : ''}>
1921
20-
</style>
22+
</style>\n
2123
`
2224
}
2325

2426
function 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

3132
export { generateStyleTag, generateScriptTag, templateTag }

0 commit comments

Comments
 (0)