File tree Expand file tree Collapse file tree 4 files changed +22
-12
lines changed Expand file tree Collapse file tree 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
6868| ` vroutename ` | router-link Named Routing |
6969| ` vroutenameparam ` | router-link Named with Parameters |
7070| ` vroutepath ` | router-link Path Routing Link |
71+ | ` vemit-child ` | Emit event from child component |
72+ | ` vemit-parent ` | Emit event to parent component |
7173
7274### Script
7375
@@ -86,8 +88,6 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
8688| ` vbeforedestroy ` | beforeDestroy lifecycle method |
8789| ` vdestroyed ` | destroyed lifecycle method |
8890| ` vprops ` | Props with type and default |
89- | ` vemit-child ` | Emit event from child component |
90- | ` vemit-parent ` | Emit event tp parent component |
9191| ` vimport ` | Import one component into another |
9292| ` vimport-dynamic ` | Import one component that should be lazy loaded by webpack |
9393| ` 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 9898 ],
9999 "description" : " Vue Props with Default"
100100 },
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- },
111101 "Vue Import File" : {
112102 "prefix" : " vimport" ,
113103 "body" : [" import ${1:New} from '@/components/${1:New}.vue';" ],
Original file line number Diff line number Diff line change 112112 "prefix" : " vroutepath" ,
113113 "body" : [" <router-link to=\" ${1:path}\" >${2:LinkTitle}</router-link>" ],
114114 "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"
115125 }
116126}
You can’t perform that action at this time.
0 commit comments