Created
February 15, 2021 22:50
-
-
Save Guiqft/1a0853dddd813ce78fa1a570c5d2ea03 to your computer and use it in GitHub Desktop.
Snippet for create Vue.js component with Typescript and Sass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Vue Component": { | |
"prefix": "vc", | |
"body": [ | |
"<template>", | |
"\t<div class=\"${name}-container\">", | |
"\t\t${name}", | |
"\t</div>", | |
"</template>", | |
"", | |
"<script lang=\"ts\">", | |
"import { defineComponent } from '@vue/composition-api'", | |
"", | |
"export default defineComponent({", | |
"\tname: '${name}'", | |
"})", | |
"</script>", | |
"", | |
"<style lang=\"scss\" scoped>", | |
".${name}-container {", | |
"\tdisplay: flex;", | |
"}", | |
"</style>" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment