@@ -32,18 +32,19 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
3232
3333### Vue
3434
35- | Snippet | Purpose |
36- | ------------ | ----------------------------------------------------- |
37- | ` vbase ` | Single file component base with SCSS |
38- | ` vbase-3 ` | Single File component Composition API with SCSS |
39- | ` vbase-css ` | Single file component base with CSS |
40- | ` vbase-pcss ` | Single file component base with PostCSS |
41- | ` vbase-styl ` | Single file component base with Stylus |
42- | ` vbase-ts ` | Single file component base with Typescript |
43- | ` vbase-3-ts ` | Single File component Composition API with Typescript |
44- | ` vbase-ns ` | Single file component with no styles |
45- | ` vbase-sass ` | Single file component base with SASS |
46- | ` vbase-less ` | Single file component base with LESS |
35+ | Snippet | Purpose |
36+ | ------------------ | ------------------------------------------------------------ |
37+ | ` vbase ` | Single file component base with SCSS |
38+ | ` vbase-3 ` | Single File component Composition API with SCSS |
39+ | ` vbase-3-reactive ` | Single File component Composition API with Reactive and SCSS |
40+ | ` vbase-css ` | Single file component base with CSS |
41+ | ` vbase-pcss ` | Single file component base with PostCSS |
42+ | ` vbase-styl ` | Single file component base with Stylus |
43+ | ` vbase-ts ` | Single file component base with Typescript |
44+ | ` vbase-3-ts ` | Single File component Composition API with Typescript |
45+ | ` vbase-ns ` | Single file component with no styles |
46+ | ` vbase-sass ` | Single file component base with SASS |
47+ | ` vbase-less ` | Single file component base with LESS |
4748
4849### Template
4950
@@ -53,6 +54,7 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
5354| ` vmodel ` | Semantic v-model directive |
5455| ` vmodel-num ` | Semantic v-model number directive |
5556| ` von ` | v-on click handler with arguments |
57+ | ` vslot-named ` | Named slot |
5658| ` vel-props ` | Component element with props |
5759| ` vsrc ` | Image src binding |
5860| ` vstyle ` | Inline style binding |
@@ -68,60 +70,59 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
6870
6971### Script
7072
71- | Snippet | Purpose |
72- | ---------------- | ------------------------------------------------------------------------ |
73- | ` vdata ` | Component data as a function |
74- | ` vmethod ` | Vue method |
75- | ` vcomputed ` | Vue computed property |
76- | ` vwatcher ` | Vue watcher with new and old value args |
77- | ` vbeforecreate ` | beforeCreate lifecycle method |
78- | ` vcreated ` | created lifecycle method |
79- | ` vbeforemount ` | beforeMount lifecycle method |
80- | ` vmounted ` | vmounted lifecycle method |
81- | ` vbeforeupdate ` | beforeUpdate lifecycle method |
82- | ` vupdated ` | updated lifecycle method |
83- | ` vbeforedestroy ` | beforeDestroy lifecycle method |
84- | ` vdestroyed ` | destroyed lifecycle method |
85- | ` vprops ` | Props with type and default |
86- | ` vimport ` | Import one component into another |
87- | ` vimport-dynamic ` | Import one component that should be lazy loaded by webpack |
88- | ` vcomponents ` | Import one component into another within the export statement |
89- | ` vimport-export ` | Import one component into another and use it within the export statement |
90- | ` vmapstate ` | import mapState from Vuex into vue component component |
91- | ` vmapgetters ` | import mapGetters from Vuex into vue component component |
92- | ` vmapmutations ` | import mapMutations from Vuex into vue component component |
93- | ` vmapactions ` | import mapActions from Vuex into vue component component |
94- | ` vfilter ` | Vue filter |
95- | ` vmixin ` | Create a Vue Mixin |
96- | ` vmixin-use ` | Bring a mixin into a component to use |
97- | ` vc-direct ` | Vue create a custom directive |
98- | ` vimport-lib ` | Import a library |
99- | ` vimport-gsap ` | Import GreenSock with Timeline and Eases |
100- | ` vanimhook-js ` | Using the Transition component JS hooks in methods |
101- | ` vcommit ` | Commit to Vuex store in methods for mutation |
102- | ` vdispatch ` | Dispatch to Vuex store in methods for action |
103- | ` vtest ` | A simple unit testing component |
104- | ` vinc ` | incrementer |
105- | ` vdec ` | decrementer |
106- | ` vconfig ` | vue.config.js file, example imports a sass file into every component |
73+ | Snippet | Purpose |
74+ | ----------------- | ------------------------------------------------------------------------ |
75+ | ` vdata ` | Component data as a function |
76+ | ` vmethod ` | Vue method |
77+ | ` vcomputed ` | Vue computed property |
78+ | ` vwatcher ` | Vue watcher with new and old value args |
79+ | ` vbeforecreate ` | beforeCreate lifecycle method |
80+ | ` vcreated ` | created lifecycle method |
81+ | ` vbeforemount ` | beforeMount lifecycle method |
82+ | ` vmounted ` | vmounted lifecycle method |
83+ | ` vbeforeupdate ` | beforeUpdate lifecycle method |
84+ | ` vupdated ` | updated lifecycle method |
85+ | ` vbeforedestroy ` | beforeDestroy lifecycle method |
86+ | ` vdestroyed ` | destroyed lifecycle method |
87+ | ` vprops ` | Props with type and default |
88+ | ` vemit-child ` | Emit event from child component |
89+ | ` vemit-parent ` | Emit event tp parent component |
90+ | ` vimport ` | Import one component into another |
91+ | ` vimport-dynamic ` | Import one component that should be lazy loaded by webpack |
92+ | ` vcomponents ` | Import one component into another within the export statement |
93+ | ` vimport-export ` | Import one component into another and use it within the export statement |
94+ | ` vmapstate ` | import mapState from Vuex into vue component component |
95+ | ` vmapgetters ` | import mapGetters from Vuex into vue component component |
96+ | ` vmapmutations ` | import mapMutations from Vuex into vue component component |
97+ | ` vmapactions ` | import mapActions from Vuex into vue component component |
98+ | ` vfilter ` | Vue filter |
99+ | ` vmixin ` | Create a Vue Mixin |
100+ | ` vmixin-use ` | Bring a mixin into a component to use |
101+ | ` vc-direct ` | Vue create a custom directive |
102+ | ` vimport-lib ` | Import a library |
103+ | ` vimport-gsap ` | Import GreenSock |
104+ | ` vanimhook-js ` | Using the Transition component JS hooks in methods |
105+ | ` vcommit ` | Commit to Vuex store in methods for mutation |
106+ | ` vdispatch ` | Dispatch to Vuex store in methods for action |
107+ | ` vtest ` | A simple unit testing component |
107108
108109### Vue Composition API
109110
110- | Snippet | Purpose |
111- | ----------------- | -- ------------------------------------------------ |
112- | v3reactive | Vue Composition api - reactive |
113- | v3computed | Vue Composition api - computed |
114- | v3watch | Vue Composition api - watcher single source |
115- | v3watch-array | Vue Composition api - watch as array |
116- | v3watcheffect | Vue Composition api - watchEffect |
117- | v3ref | Vue Ref |
118- | v3onmounted | Lifecycle hook - onMounted |
119- | v3onbeforemount | Lifecycle hook - onBeforeMount |
120- | v3onbeforeupdate | Lifecycle hook - onBeforeUpdate |
121- | v3onupdated | Lifecycle hook - onUpdated |
122- | v3onerrorcaptured | Lifecycle hook - onErrorCaptured |
123- | v3onunmounted | Lifecycle hook - (destroyed) onUnmounted |
124- | v3onbeforeunmount | Lifecycle hook - (beforeDestroy) onBeforeUnmount |
111+ | Snippet | Purpose |
112+ | ------------------- | ------------------------------------------------ |
113+ | ` v3reactive ` | Vue Composition api - reactive |
114+ | ` v3computed ` | Vue Composition api - computed |
115+ | ` v3watch ` | Vue Composition api - watcher single source |
116+ | ` v3watch-array ` | Vue Composition api - watch as array |
117+ | ` v3watcheffect ` | Vue Composition api - watchEffect |
118+ | ` v3ref ` | Vue Ref |
119+ | ` v3onmounted ` | Lifecycle hook - onMounted |
120+ | ` v3onbeforemount ` | Lifecycle hook - onBeforeMount |
121+ | ` v3onbeforeupdate ` | Lifecycle hook - onBeforeUpdate |
122+ | ` v3onupdated ` | Lifecycle hook - onUpdated |
123+ | ` v3onerrorcaptured ` | Lifecycle hook - onErrorCaptured |
124+ | ` v3onunmounted ` | Lifecycle hook - (destroyed) onUnmounted |
125+ | ` v3onbeforeunmount ` | Lifecycle hook - (beforeDestroy) onBeforeUnmount |
125126
126127### Vuex
127128
@@ -149,6 +150,13 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
149150| ` vbeforerouteupdate ` | Vue Router component guards beforeRouteUpdate |
150151| ` vbeforerouteleave ` | Vue Router component guards beforeRouteLeave |
151152
153+ ### Vue Config
154+
155+ | Snippet | Purpose |
156+ | --------- | -------------------------------------------------------------------- |
157+ | ` vplugin ` | Import a plugin to main.js or plugins file |
158+ | ` vconfig ` | vue.config.js file, example imports a sass file into every component |
159+
152160### Nuxt Config
153161
154162| Snippet | Purpose |
@@ -158,11 +166,12 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
158166
159167### Nuxt Page
160168
161- | Snippet | Purpose |
162- | ------------ | -------------- |
163- | ` nasyncdata ` | Nuxt asyncData |
164- | ` nfetch ` | Nuxt Fetch |
165- | ` nhead ` | Nuxt Head |
169+ | Snippet | Purpose |
170+ | ------------ | ----------------- |
171+ | ` nasyncdata ` | Nuxt asyncData |
172+ | ` nfetch ` | Nuxt Fetch |
173+ | ` nhead ` | Nuxt Head |
174+ | ` nparam ` | Nuxt Route Params |
166175
167176### Extra (plaintext)
168177
0 commit comments