File tree 3 files changed +22
-2
lines changed
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
70
70
| ` vroutename ` | router-link Named Routing |
71
71
| ` vroutenameparam ` | router-link Named with Parameters |
72
72
| ` vroutepath ` | router-link Path Routing Link |
73
+ | ` vemit-child ` | Emit event from child component |
74
+ | ` vemit-parent ` | Emit event to parent component |
73
75
74
76
### Script
75
77
@@ -88,8 +90,6 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
88
90
| ` vbeforedestroy ` | beforeDestroy lifecycle method |
89
91
| ` vdestroyed ` | destroyed lifecycle method |
90
92
| ` vprops ` | Props with type and default |
91
- | ` vemit-child ` | Emit event from child component |
92
- | ` vemit-parent ` | Emit event tp parent component |
93
93
| ` vimport ` | Import one component into another |
94
94
| ` vimport-dynamic ` | Import one component that should be lazy loaded by webpack |
95
95
| ` 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 122
122
"prefix" : " vroutepath" ,
123
123
"body" : [" <router-link to=\" ${1:path}\" >${2:LinkTitle}</router-link>" ],
124
124
"description" : " Path routing link"
125
+ },
126
+ "Vue Emit from Child" : {
127
+ "prefix" : " vemit-child" ,
128
+ "body" : [" @change=\" $emit('change', $event.target.value)\" " ],
129
+ "description" : " Vue Emit from Child Component"
130
+ },
131
+ "Vue Emit to Parent" : {
132
+ "prefix" : " vemit-parent" ,
133
+ "body" : [" @change=\" ${1:foo} = $event\" " ],
134
+ "description" : " Vue Emit to Parent Component"
125
135
}
126
136
}
You can’t perform that action at this time.
0 commit comments