-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.code-snippets
63 lines (63 loc) · 1.05 KB
/
vue.code-snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"vue template": {
"prefix": "v",
"body": [
"<template>",
" <div>",
" </div>",
"</template>\n",
"<script>",
"export default {",
" name: '${1:componentsName}',",
" components: {},",
" data () {",
" return {}",
" },",
" computed: {},",
" methods: {},",
" created () {},",
" mounted () {},",
" activated () {}",
"}",
"</script>\n",
"<style scoped lang=\"stylus\">",
"</style>"
]
},
"{{}}": {
"prefix": "v-bind",
"body": [
"{{$0}}"
]
},
"import components": {
"prefix": "v-components",
"body": [
"${1:componentsName}: () => import('@/components/${2:folder}/${3:componentsName}')"
]
},
"import image": {
"prefix": "v-image",
"body": [
"@image/${1:fileName}"
]
},
"import css": {
"prefix": "v-css",
"body": [
"@import '~@css/${1:fileName}'"
]
},
"template img": {
"prefix": "v-img",
"body": [
"<img src=\"@images/${1:dev.jpg}\" />"
]
},
"vuex state": {
"prefix": "v-state",
"body": [
"this.$$store.state.${1:modules}.${2:key}$0"
]
}
}