Skip to content

Commit 75ca603

Browse files
fixup! feat(vue3) add composition api
1 parent 028480a commit 75ca603

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

+18
Original file line numberDiff line numberDiff 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 |

snippets/vue-script.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
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",
@@ -334,7 +334,7 @@
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",

0 commit comments

Comments
 (0)