File tree 2 files changed +20
-2
lines changed
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
102
102
| ` vdec ` | decrementer |
103
103
| ` vconfig ` | vue.config.js file, example imports a sass file into every component |
104
104
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
+
105
123
### Vuex
106
124
107
125
| Snippet | Purpose |
Original file line number Diff line number Diff line change 316
316
" \t ${2:count}: ${3:0}" ,
317
317
" })"
318
318
],
319
- "description" : " Vue Composition api - computed "
319
+ "description" : " Vue Composition api - reactive "
320
320
},
321
321
"Vue Composition API - Computed" : {
322
322
"prefix" : " v3computed" ,
334
334
" \t ${2}" ,
335
335
" })"
336
336
],
337
- "description" : " Vue Composition api - watch as array "
337
+ "description" : " Vue Composition api - watcher single source "
338
338
},
339
339
"Vue Composition API - watch - array" : {
340
340
"prefix" : " v3watch-array" ,
You can’t perform that action at this time.
0 commit comments