Skip to content

Instantly share code, notes, and snippets.

@jtfl2008
Created September 17, 2019 15:03
Show Gist options
  • Save jtfl2008/2d80325bc4363a6edd563c2c93d38409 to your computer and use it in GitHub Desktop.
Save jtfl2008/2d80325bc4363a6edd563c2c93d38409 to your computer and use it in GitHub Desktop.
vue模板
{
"Print to console": {
"prefix": "vTpl",
"body": [
"<template>",
" <div>$0</div>",
"</template>",
"",
"<script>",
"export default {",
" name: '',",
" components: {},",
" directives: {},",
" filters: {},",
" mixins: {},",
" props: {",
" propName: {",
" type: number,",
" default: 0",
" }",
" },",
" data () {",
" return {",
" key: value",
" }",
" },",
" computed: {},",
" watch: {},",
" beforeCreate(){},",
" created(){},",
" beforeMount(){},",
" mounted(){},",
" beforeUpdate(){},",
" updated(){},",
" activated(){},",
" deactivated(){},",
" beforeDestroy(){},",
" destroyed(){},",
" methods: {}",
"}",
"</script>",
"<style scoped>",
"</style>"
],
"description": "Log output to console"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment