File tree Expand file tree Collapse file tree 3 files changed +46
-10
lines changed Expand file tree Collapse file tree 3 files changed +46
-10
lines changed Original file line number Diff line number Diff line change 33
33
"language" : " vue" ,
34
34
"path" : " ./snippets/vue.json"
35
35
},
36
- {
37
- "language" : " html" ,
38
- "path" : " ./snippets/vue-template.json"
39
- },
40
36
{
41
37
"language" : " vue-html" ,
42
38
"path" : " ./snippets/vue-template.json"
43
39
},
44
40
{
45
- "language" : " javascript " ,
41
+ "language" : " vue " ,
46
42
"path" : " ./snippets/vue-script.json"
47
43
},
48
44
{
Original file line number Diff line number Diff line change 10
10
],
11
11
"description" : " Vue Data"
12
12
},
13
+ "Vue Props" : {
14
+ "prefix" : " vprops" ,
15
+ "body" : [
16
+ " props: {" ,
17
+ " value: {" ,
18
+ " type: String," ,
19
+ " default: ''" ,
20
+ " }" ,
21
+ " }"
22
+ ],
23
+ "description" : " Vue Props"
24
+ },
25
+ "Vue Components" : {
26
+ "prefix" : " vcomp" ,
27
+ "body" : [
28
+ " components: {" ,
29
+ " " ,
30
+ " }"
31
+ ],
32
+ "description" : " Vue Components"
33
+ },
13
34
"Vue Method" : {
14
35
"prefix" : " vmethod" ,
15
36
"body" : [
20
41
" },"
21
42
],
22
43
"description" : " Vue Method"
44
+ },
45
+ "Vue Watch" : {
46
+ "prefix" : " vwatch" ,
47
+ "body" : [
48
+ " watch: {" ,
49
+ " value: {" ,
50
+ " handler: 'fetchData'," ,
51
+ " immediate: true" ,
52
+ " }" ,
53
+ " }"
54
+ ],
55
+ "description" : " Vue Watch"
56
+ },
57
+ "Vue Created" : {
58
+ "prefix" : " vcreated" ,
59
+ "body" : [
60
+ " created () {" ,
61
+ " " ,
62
+ " }"
63
+ ],
64
+ "description" : " Vue Created"
23
65
}
24
66
}
Original file line number Diff line number Diff line change 33
33
" </template>" ,
34
34
" " ,
35
35
" <script>" ,
36
- " import { mapState, mapActions } from 'vuex'" ,
36
+ " import { mapGetters } from 'vuex'" ,
37
37
" export default {" ,
38
38
" name: '${1:name}'," ,
39
39
" " ,
40
40
" computed: {" ,
41
- " ...mapState ([" ,
41
+ " ...mapGetters ([" ,
42
42
" " ,
43
43
" ])" ,
44
44
" }," ,
50
50
" }," ,
51
51
" " ,
52
52
" methods: {" ,
53
- " ...mapActions([" ,
54
53
" " ,
55
- " ])" ,
56
54
" }," ,
57
55
" " ,
58
56
" created () {" ,
70
68
],
71
69
"description" : " Vue View Component"
72
70
}
73
- }
71
+ }
You can’t perform that action at this time.
0 commit comments