File tree 4 files changed +22
-12
lines changed
4 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
68
68
| ` vroutename ` | router-link Named Routing |
69
69
| ` vroutenameparam ` | router-link Named with Parameters |
70
70
| ` vroutepath ` | router-link Path Routing Link |
71
+ | ` vemit-child ` | Emit event from child component |
72
+ | ` vemit-parent ` | Emit event to parent component |
71
73
72
74
### Script
73
75
@@ -86,8 +88,6 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
86
88
| ` vbeforedestroy ` | beforeDestroy lifecycle method |
87
89
| ` vdestroyed ` | destroyed lifecycle method |
88
90
| ` vprops ` | Props with type and default |
89
- | ` vemit-child ` | Emit event from child component |
90
- | ` vemit-parent ` | Emit event tp parent component |
91
91
| ` vimport ` | Import one component into another |
92
92
| ` vimport-dynamic ` | Import one component that should be lazy loaded by webpack |
93
93
| ` vcomponents ` | Import one component into another within the export statement |
Original file line number Diff line number Diff line change 82
82
"prefix" : " vnuxtl" ,
83
83
"body" : [" nuxt-link(to=\" /${1:page}\" ) ${1:page}" ],
84
84
"description" : " nuxt routing link"
85
+ },
86
+ "Vue Emit from Child" : {
87
+ "prefix" : " vemit-child" ,
88
+ "body" : [" @change=\" $emit('change', $event.target.value)\" " ],
89
+ "description" : " Vue Emit from Child Component"
90
+ },
91
+ "Vue Emit to Parent" : {
92
+ "prefix" : " vemit-parent" ,
93
+ "body" : [" @change=\" ${1:foo} = $event\" " ],
94
+ "description" : " Vue Emit to Parent Component"
85
95
}
86
96
}
Original file line number Diff line number Diff line change 98
98
],
99
99
"description" : " Vue Props with Default"
100
100
},
101
- "Vue Emit from Child" : {
102
- "prefix" : " vemit-child" ,
103
- "body" : [" @change=\" $emit('change', $event.target.value)\" " ],
104
- "description" : " Vue Emit from Child Component"
105
- },
106
- "Vue Emit to Parent" : {
107
- "prefix" : " vemit-parent" ,
108
- "body" : [" @change=\" ${1:foo} = $event\" " ],
109
- "description" : " Vue Emit to Parent Component"
110
- },
111
101
"Vue Import File" : {
112
102
"prefix" : " vimport" ,
113
103
"body" : [" import ${1:New} from '@/components/${1:New}.vue';" ],
Original file line number Diff line number Diff line change 112
112
"prefix" : " vroutepath" ,
113
113
"body" : [" <router-link to=\" ${1:path}\" >${2:LinkTitle}</router-link>" ],
114
114
"description" : " Path routing link"
115
+ },
116
+ "Vue Emit from Child" : {
117
+ "prefix" : " vemit-child" ,
118
+ "body" : [" @change=\" $emit('change', $event.target.value)\" " ],
119
+ "description" : " Vue Emit from Child Component"
120
+ },
121
+ "Vue Emit to Parent" : {
122
+ "prefix" : " vemit-parent" ,
123
+ "body" : [" @change=\" ${1:foo} = $event\" " ],
124
+ "description" : " Vue Emit to Parent Component"
115
125
}
116
126
}
You can’t perform that action at this time.
0 commit comments