Created
March 25, 2020 14:00
-
-
Save yangwao/16f140908ec5aad901a8988c2e25e7cd to your computer and use it in GitHub Desktop.
Vue Typescript Template Component Snippet for Vetur with vue-property-decorator
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 typescript w decorator": { | |
"prefix": "<template Typescript 😁", | |
"body": [ | |
"<template>" | |
" <div>" | |
"\n" | |
" </div>" | |
"</template>" | |
"<script lang=\"ts\" >" | |
"import { Component, Prop, Vue, Watch } from 'vue-property-decorator';" | |
"\n" | |
"@Component({})" | |
"export default class $1 extends Vue {" | |
"$2" | |
" private value2: any;" | |
" @Prop() public value!: any;" | |
"}" | |
"</script>" | |
], | |
"description": "vue template w decorator component" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment