Created
July 24, 2021 07:33
-
-
Save dennbagas/6c1b3f66e60086778d7daa57040201e7 to your computer and use it in GitHub Desktop.
Nuxt VSCode Snippet
This file contains 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
{ | |
"Nuxt Class Component": { | |
"prefix": "vue-component-class-ts", | |
"body": [ | |
"<template>", | |
" <div></div>", | |
"</template>", | |
"", | |
"<script lang=\"ts\">", | |
"import { Component, Vue } from 'vue-property-decorator'", | |
"", | |
"@Component", | |
"export default class ${1:VueComponent} extends Vue {", | |
" //", | |
"}", | |
"</script>", | |
"" | |
], | |
"description": "NuxtJS Typescript Class Component" | |
}, | |
"Nuxt Page": { | |
"prefix": "vue-page-class-ts", | |
"body": [ | |
"<template>", | |
" <div></div>", | |
"</template>", | |
"", | |
"<script lang=\"ts\">", | |
"import { Component, Vue } from 'vue-property-decorator'", | |
"import PagePropertyMixin from '~/mixin/pageProperty'", | |
"", | |
"@Component", | |
"export default class ${1:VueComponent} extends extends Mixins(PagePropertyMixin) {", | |
" //", | |
"}", | |
"</script>", | |
"" | |
], | |
"description": "NuxtJS Typescript Class Page" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment