vue代码片段

 1 {
 2   "vue": {
 3     "prefix": "vue",
 4     "description": "vue代码片段",
 5     "body": [
 6       "<template>",
 7       "<div>",
 8       "    $1",
 9       "</div>",
10       "</template>",
11       "",
12       "<script>",
13       "export default {",
14       "  data(){",
15       "      return {}",
16       "  },",
17       "  methods:{},",
18       "  computed:{},",
19       "  watch:{},",
20       "  filters:{},",
21       "  components:{},",
22       "  created(){},",
23       "  mounted(){}",
24       "}",
25       "</script>",
26       "",
27       "<style scoped lang='less'>",
28       "",
29       "</style>",
30       ""
31     ]
32   },
33   "vv3": {
34     "prefix": "vv3",
35     "description": "",
36     "body": [
37       "<template>",
38       "<div></div>",
39       "</template>",
40       "",
41       "<script lang="ts">",
42       "import { defineComponent } from 'vue';",
43       "export default defineComponent({",
44       "  name: 'App',",
45       "  components: {",
46       "    ",
47       "  }",
48       "});",
49       "</script>",
50       "",
51       "<style>",
52       "",
53       "</style>",
54       ""
55     ]
56   }
57 }
原文地址:https://www.cnblogs.com/ndh074512/p/14995320.html