File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,24 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
102102| ` vdec ` | decrementer |
103103| ` vconfig ` | vue.config.js file, example imports a sass file into every component |
104104
105+ ### Vue Composition API
106+
107+ | Snippet | Purpose |
108+ | ----------------- | -------------------------------------------------- |
109+ | v3reactive | Vue Composition api - reactive |
110+ | v3computed | Vue Composition api - computed |
111+ | v3watch | Vue Composition api - watcher single source |
112+ | v3watch-array | Vue Composition api - watch as array |
113+ | v3watcheffect | Vue Composition api - watchEffect |
114+ | v3ref | Vue Ref |
115+ | v3onmounted | Lifecycle hook - onMounted |
116+ | v3onbeforemount | Lifecycle hook - onBeforeMount |
117+ | v3onbeforeupdate | Lifecycle hook - onBeforeUpdate |
118+ | v3onupdated | Lifecycle hook - onUpdated |
119+ | v3onerrorcaptured | Lifecycle hook - onErrorCaptured |
120+ | v3onunmounted | Lifecycle hook - (destroyed) onUnmounted |
121+ | v3onbeforeunmount | Lifecycle hook - (beforeDestroy) onBeforeUnmount |
122+
105123### Vuex
106124
107125| Snippet | Purpose |
Original file line number Diff line number Diff line change 316316 " \t ${2:count}: ${3:0}" ,
317317 " })"
318318 ],
319- "description" : " Vue Composition api - computed "
319+ "description" : " Vue Composition api - reactive "
320320 },
321321 "Vue Composition API - Computed" : {
322322 "prefix" : " v3computed" ,
334334 " \t ${2}" ,
335335 " })"
336336 ],
337- "description" : " Vue Composition api - watch as array "
337+ "description" : " Vue Composition api - watcher single source "
338338 },
339339 "Vue Composition API - watch - array" : {
340340 "prefix" : " v3watch-array" ,
You can’t perform that action at this time.
0 commit comments