vue代码片段

根据vue风格指南,进行了实例的选项的顺序推荐

资料地址

{
	"Print to console": {
			"prefix": "vue",
			"body": [
					"<template>",
					"    <div>\n",
					"    </div>",
					"</template>\n",
					"<script>",
					"export default {",
                                        "     name:''",
                                        "    components: {\n",
					"    },",
					"    props: {\n",
					"    },",
					"    data() {",
					"        return {\n",
					"        };",
					"    },",
					"    computed: {\n",
					"    },",
                                        "    watch: {\n",
					"    },",
					"    created() {\n",
					"    },",
					"    mounted() {\n",
					"    },",
					"    methods: {\n",
					"    },",
					"};",
					"</script>\n",
					"<style scoped lang=\"${1:scss}\">\n",
					"</style>\n",
			],
			"description": "Create vue template"
	}
}
上一篇:JQuery的动态加载class无法实现点击时间的解决方案


下一篇:Vue中的计算属性computed和侦听器watch