@@ -32,19 +32,20 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
32
32
33
33
### Vue
34
34
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 |
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 |
43
44
| ` vbase-ts-class ` | Single file component base with Typescript Class Format |
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 |
45
+ | ` vbase-3-ts ` | Single File component Composition API with Typescript |
46
+ | ` vbase-ns ` | Single file component with no styles |
47
+ | ` vbase-sass ` | Single file component base with SASS |
48
+ | ` vbase-less ` | Single file component base with LESS |
48
49
49
50
### Template
50
51
@@ -54,6 +55,7 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
54
55
| ` vmodel ` | Semantic v-model directive |
55
56
| ` vmodel-num ` | Semantic v-model number directive |
56
57
| ` von ` | v-on click handler with arguments |
58
+ | ` vslot-named ` | Named slot |
57
59
| ` vel-props ` | Component element with props |
58
60
| ` vsrc ` | Image src binding |
59
61
| ` vstyle ` | Inline style binding |
@@ -69,60 +71,59 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
69
71
70
72
### Script
71
73
72
- | Snippet | Purpose |
73
- | ---------------- | ------------------------------------------------------------------------ |
74
- | ` vdata ` | Component data as a function |
75
- | ` vmethod ` | Vue method |
76
- | ` vcomputed ` | Vue computed property |
77
- | ` vwatcher ` | Vue watcher with new and old value args |
78
- | ` vbeforecreate ` | beforeCreate lifecycle method |
79
- | ` vcreated ` | created lifecycle method |
80
- | ` vbeforemount ` | beforeMount lifecycle method |
81
- | ` vmounted ` | vmounted lifecycle method |
82
- | ` vbeforeupdate ` | beforeUpdate lifecycle method |
83
- | ` vupdated ` | updated lifecycle method |
84
- | ` vbeforedestroy ` | beforeDestroy lifecycle method |
85
- | ` vdestroyed ` | destroyed lifecycle method |
86
- | ` vprops ` | Props with type and default |
87
- | ` vimport ` | Import one component into another |
88
- | ` vimport-dynamic ` | Import one component that should be lazy loaded by webpack |
89
- | ` vcomponents ` | Import one component into another within the export statement |
90
- | ` vimport-export ` | Import one component into another and use it within the export statement |
91
- | ` vmapstate ` | import mapState from Vuex into vue component component |
92
- | ` vmapgetters ` | import mapGetters from Vuex into vue component component |
93
- | ` vmapmutations ` | import mapMutations from Vuex into vue component component |
94
- | ` vmapactions ` | import mapActions from Vuex into vue component component |
95
- | ` vfilter ` | Vue filter |
96
- | ` vmixin ` | Create a Vue Mixin |
97
- | ` vmixin-use ` | Bring a mixin into a component to use |
98
- | ` vc-direct ` | Vue create a custom directive |
99
- | ` vimport-lib ` | Import a library |
100
- | ` vimport-gsap ` | Import GreenSock with Timeline and Eases |
101
- | ` vanimhook-js ` | Using the Transition component JS hooks in methods |
102
- | ` vcommit ` | Commit to Vuex store in methods for mutation |
103
- | ` vdispatch ` | Dispatch to Vuex store in methods for action |
104
- | ` vtest ` | A simple unit testing component |
105
- | ` vinc ` | incrementer |
106
- | ` vdec ` | decrementer |
107
- | ` vconfig ` | vue.config.js file, example imports a sass file into every component |
74
+ | Snippet | Purpose |
75
+ | ----------------- | ------------------------------------------------------------------------ |
76
+ | ` vdata ` | Component data as a function |
77
+ | ` vmethod ` | Vue method |
78
+ | ` vcomputed ` | Vue computed property |
79
+ | ` vwatcher ` | Vue watcher with new and old value args |
80
+ | ` vbeforecreate ` | beforeCreate lifecycle method |
81
+ | ` vcreated ` | created lifecycle method |
82
+ | ` vbeforemount ` | beforeMount lifecycle method |
83
+ | ` vmounted ` | vmounted lifecycle method |
84
+ | ` vbeforeupdate ` | beforeUpdate lifecycle method |
85
+ | ` vupdated ` | updated lifecycle method |
86
+ | ` vbeforedestroy ` | beforeDestroy lifecycle method |
87
+ | ` vdestroyed ` | destroyed lifecycle method |
88
+ | ` vprops ` | Props with type and default |
89
+ | ` vemit-child ` | Emit event from child component |
90
+ | ` vemit-parent ` | Emit event tp parent component |
91
+ | ` vimport ` | Import one component into another |
92
+ | ` vimport-dynamic ` | Import one component that should be lazy loaded by webpack |
93
+ | ` vcomponents ` | Import one component into another within the export statement |
94
+ | ` vimport-export ` | Import one component into another and use it within the export statement |
95
+ | ` vmapstate ` | import mapState from Vuex into vue component component |
96
+ | ` vmapgetters ` | import mapGetters from Vuex into vue component component |
97
+ | ` vmapmutations ` | import mapMutations from Vuex into vue component component |
98
+ | ` vmapactions ` | import mapActions from Vuex into vue component component |
99
+ | ` vfilter ` | Vue filter |
100
+ | ` vmixin ` | Create a Vue Mixin |
101
+ | ` vmixin-use ` | Bring a mixin into a component to use |
102
+ | ` vc-direct ` | Vue create a custom directive |
103
+ | ` vimport-lib ` | Import a library |
104
+ | ` vimport-gsap ` | Import GreenSock |
105
+ | ` vanimhook-js ` | Using the Transition component JS hooks in methods |
106
+ | ` vcommit ` | Commit to Vuex store in methods for mutation |
107
+ | ` vdispatch ` | Dispatch to Vuex store in methods for action |
108
+ | ` vtest ` | A simple unit testing component |
108
109
109
110
### Vue Composition API
110
111
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 |
112
+ | Snippet | Purpose |
113
+ | ------------------- | ------------------------------------------------ |
114
+ | ` v3reactive ` | Vue Composition api - reactive |
115
+ | ` v3computed ` | Vue Composition api - computed |
116
+ | ` v3watch ` | Vue Composition api - watcher single source |
117
+ | ` v3watch-array ` | Vue Composition api - watch as array |
118
+ | ` v3watcheffect ` | Vue Composition api - watchEffect |
119
+ | ` v3ref ` | Vue Ref |
120
+ | ` v3onmounted ` | Lifecycle hook - onMounted |
121
+ | ` v3onbeforemount ` | Lifecycle hook - onBeforeMount |
122
+ | ` v3onbeforeupdate ` | Lifecycle hook - onBeforeUpdate |
123
+ | ` v3onupdated ` | Lifecycle hook - onUpdated |
124
+ | ` v3onerrorcaptured ` | Lifecycle hook - onErrorCaptured |
125
+ | ` v3onunmounted ` | Lifecycle hook - (destroyed) onUnmounted |
126
+ | ` v3onbeforeunmount ` | Lifecycle hook - (beforeDestroy) onBeforeUnmount |
126
127
127
128
### Vuex
128
129
@@ -150,6 +151,13 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
150
151
| ` vbeforerouteupdate ` | Vue Router component guards beforeRouteUpdate |
151
152
| ` vbeforerouteleave ` | Vue Router component guards beforeRouteLeave |
152
153
154
+ ### Vue Config
155
+
156
+ | Snippet | Purpose |
157
+ | --------- | -------------------------------------------------------------------- |
158
+ | ` vplugin ` | Import a plugin to main.js or plugins file |
159
+ | ` vconfig ` | vue.config.js file, example imports a sass file into every component |
160
+
153
161
### Nuxt Config
154
162
155
163
| Snippet | Purpose |
@@ -159,11 +167,12 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
159
167
160
168
### Nuxt Page
161
169
162
- | Snippet | Purpose |
163
- | ------------ | -------------- |
164
- | ` nasyncdata ` | Nuxt asyncData |
165
- | ` nfetch ` | Nuxt Fetch |
166
- | ` nhead ` | Nuxt Head |
170
+ | Snippet | Purpose |
171
+ | ------------ | ----------------- |
172
+ | ` nasyncdata ` | Nuxt asyncData |
173
+ | ` nfetch ` | Nuxt Fetch |
174
+ | ` nhead ` | Nuxt Head |
175
+ | ` nparam ` | Nuxt Route Params |
167
176
168
177
### Extra (plaintext)
169
178
0 commit comments