File tree 4 files changed +29
-7
lines changed
4 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to the "vue-vscode-snippets" extension will be documented in this file.
4
4
5
+ ## 2.1.3
6
+
7
+ - Add in boilerplate to use Composition API inside Options API
8
+
5
9
## 2.1.2
6
10
7
11
- Add in Vue 3 Composition API with Reactive boilerplate script
Original file line number Diff line number Diff line change @@ -111,12 +111,12 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
111
111
112
112
| Snippet | Purpose |
113
113
| ------------------- | ----------------------------------------------------- |
114
- | ` v3reactive ` | Vue Composition api - reactive |
115
- | ` v3reactive-setup ` | Vue Composition api - reactive with setup boilerplate |
116
- | ` v3computed ` | Vue Composition api - computed |
117
- | ` v3watch ` | Vue Composition api - watcher single source |
118
- | ` v3watch-array ` | Vue Composition api - watch as array |
119
- | ` v3watcheffect ` | Vue Composition api - watchEffect |
114
+ | ` v3reactive ` | Vue Composition API - reactive |
115
+ | ` v3reactive-setup ` | Vue Composition API - reactive with setup boilerplate |
116
+ | ` v3computed ` | Vue Composition API - computed |
117
+ | ` v3watch ` | Vue Composition API - watcher single source |
118
+ | ` v3watch-array ` | Vue Composition API - watch as array |
119
+ | ` v3watcheffect ` | Vue Composition API - watchEffect |
120
120
| ` v3ref ` | Vue Ref |
121
121
| ` v3onmounted ` | Lifecycle hook - onMounted |
122
122
| ` v3onbeforemount ` | Lifecycle hook - onBeforeMount |
@@ -125,6 +125,7 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
125
125
| ` v3onerrorcaptured ` | Lifecycle hook - onErrorCaptured |
126
126
| ` v3onunmounted ` | Lifecycle hook - (destroyed) onUnmounted |
127
127
| ` v3onbeforeunmount ` | Lifecycle hook - (beforeDestroy) onBeforeUnmount |
128
+ | ` v3useinoptions ` | Use Composition API in Options API |
128
129
129
130
### Vuex
130
131
Original file line number Diff line number Diff line change 3
3
"displayName" : " Vue VSCode Snippets" ,
4
4
"description" : " Snippets that will supercharge your Vue workflow" ,
5
5
"icon" : " images/vue-logo.png" ,
6
- "version" : " 2.1.2 " ,
6
+ "version" : " 2.1.3 " ,
7
7
"publisher" : " sdras" ,
8
8
"engines" : {
9
9
"vscode" : " ^1.14.0"
Original file line number Diff line number Diff line change 411
411
" }"
412
412
],
413
413
"description" : " Vue Composition API Script with Reactive"
414
+ },
415
+ "Use Composition API within Options API" : {
416
+ "prefix" : " v3useinoptions" ,
417
+ "body" : [
418
+ " import { ${0:component} } from '@/composables/${0:component}.js'" ,
419
+ " " ,
420
+ " export default {" ,
421
+ " \t setup () {" ,
422
+ " \t\t const { ${1:name} } = ${0:component}()" ,
423
+ " \t " ,
424
+ " \t\t return {" ,
425
+ " \t\t\t ${1:name}" ,
426
+ " \t\t }" ,
427
+ " \t }" ,
428
+ " }"
429
+ ],
430
+ "description" : " Use Composition API within Options API"
414
431
}
415
432
}
You can’t perform that action at this time.
0 commit comments