Vue模板-待更新

{
	"vue htm": {
	 "scope": "html",
	 "prefix": "vuehtml",
	 "body": [
	  "<!DOCTYPE html>",
	  "<html lang=\"en\">",
	  "",
	  "<head>",
	  "    <meta charset=\"UTF-8\">",
	  "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
	  "    <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">",
	  "    <title>Document</title>",
	  "</head>",
	  "",
	  "<body>",
	  "    <div id=\"app\">",
	  "",
	  "    </div>",
	  "    <script src=\"vue.min.js\"></script>",
	  "    <script>",
	  "        new Vue({",
	  "            el: '#app',",
	  "            data: {",
	  "                $1",
	  "            }",
	  "        })",
	  "    </script>",
	  "</body>",
	  "",
	  "</html>",
	 ],
	 "description": "my vue template in html"
	},
	"vue模板": {
		"prefix": "vue",
		"body": [
			"<template>",
			"<div></div>",
			"</template>",
			"",
			"<script>",
			"export default {",
			"//import 引入的组件需要注入到对象中才能使用",
			"components:{},",
			"props:{},",
			"data(){",
			"//这里存数据",
			"return{};",
			"},",
			"//计算属性",
			"computed: {",
			"",
			"},",
			"//监控data中数据变化",
			"watch: {",
			"",
			"},",
			"//方法",
			"methods: {",
			"",
			"},",
			"//声明周期 - 创建完成(可以访问当前this实例)",
			"created() {",
			"",
			"},",
			"//生命周期 - 挂载完成(可以访问DOM元素)",
			"mounted() {",
			"",
			"},",
			"beforeCreate() {},//生命周期 - 创建之前",
			"beforeMount() {},//生命周期 - 挂载之前",
			"beforeUpdate() {},//声明周期 - 更新之前",
			"updated() {},//生命周期 - 更新之后",
			"beforeDestroy() {},//生命周期 - 销毁之前",
			"destroyed() {},//生命周期 - 销毁之后",
			"activated() {},//缓存keep-alive",
			"};",
			"</script>",
			"",
			"<style scoped>",
			"</style>",
		],
		"description": "生成vue模板"
	},
	"http-post请求": {
		"prefix": "httppost",
		"body": [
			"this.\\$http({",
			"url: this.\\$http.adornUrl(''),",
			"method: 'post',",
			"data: this.\\$http.adornData(data,false)",
			"}).then(({data})=>{});"
		],
		"description": "httpPOST请求"
	}
   }
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值