File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 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
7070| ` vroutename ` | router-link Named Routing |
7171| ` vroutenameparam ` | router-link Named with Parameters |
7272| ` vroutepath ` | router-link Path Routing Link |
73+ | ` vemit-child ` | Emit event from child component |
74+ | ` vemit-parent ` | Emit event to parent component |
7375
7476### Script
7577
@@ -88,8 +90,6 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
8890| ` vbeforedestroy ` | beforeDestroy lifecycle method |
8991| ` vdestroyed ` | destroyed lifecycle method |
9092| ` vprops ` | Props with type and default |
91- | ` vemit-child ` | Emit event from child component |
92- | ` vemit-parent ` | Emit event tp parent component |
9393| ` vimport ` | Import one component into another |
9494| ` vimport-dynamic ` | Import one component that should be lazy loaded by webpack |
9595| ` vcomponents ` | Import one component into another within the export statement |
Original file line number Diff line number Diff line change 8282 "prefix" : " vnuxtl" ,
8383 "body" : [" nuxt-link(to=\" /${1:page}\" ) ${1:page}" ],
8484 "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"
8595 }
8696}
Original file line number Diff line number Diff line change 122122 "prefix" : " vroutepath" ,
123123 "body" : [" <router-link to=\" ${1:path}\" >${2:LinkTitle}</router-link>" ],
124124 "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"
125135 }
126136}
You can’t perform that action at this time.
0 commit comments