vs code vue 代码片段

{
	"Print to console": {
		"prefix": "temp",
		"body": [
			"<template>",
			"    <div>",
			"        $TM_FILENAME_BASE",
			"    </div>",
			"</template>",
			"",
			"<script>",
			"export default {",
			"    name: '$TM_FILENAME_BASE',",
			"",
			"    components: { },",
			"",
			"    props: { },",
			"",
			"    data () {",
			"        return {",
			"            $0",
			"        }",
			"    },",
			"",
			"    computed: { },",
			"",
			"    watch: { },",
			"",
			"    beforeCreate () {},",
			"",
			"    create () {},",
			"",
			"    beforeMount () {},",
			"",
			"    mounted () {},",
			"",
			"    beforeUpdate () {},",
			"",
			"    updated () {},",
			"",
			"    activated () {},",
			"",
			"    deactivated () {},",
			"",
			"    beforeDestroy () {},",
			"",
			"    destroyed () {},",
			"",
			"    methods: {}",,
			"",
			"}",
			"</script>",
			"",
			"<style lang='sass' scoped>",
			"",
			"</style>",
		],
		"description": "Log output to console"
	}
}
posted @ 2020-07-15 15:16  Sugеr  阅读(115)  评论(0)    收藏  举报