File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,25 @@ These snippets were made to speed up Vue 3 development. With it you can write bo
31
31
| ` vbase-styl ` | Base for Vue 3 File with ` <script setup> ` , ` TypeScript ` and ` Stylus ` |
32
32
| ` vbase-ns ` | Base for Vue 3 File with ` <script setup> ` , ` TypeScript ` and no style |
33
33
34
+ ### Template
35
+
36
+ | Snippet | Purpose |
37
+ | -------------- | --------------------------------- |
38
+ | ` vfor ` | ` v-for ` statement |
39
+ | ` vmodel ` | ` v-model ` directive |
40
+ | ` von ` | ` v-on ` click handler |
41
+ | ` vel-props ` | Component element with ` props ` |
42
+ | ` vslot-named ` | Named slot |
43
+ | ` vimg ` | Image source binding |
44
+ | ` vstyle ` | Inline style binding |
45
+ | ` vstyle-obj ` | Inline style binding with objects |
46
+ | ` vclass ` | Class binding |
47
+ | ` vclass-ter ` | Ternary class binding |
48
+ | ` vtrans ` | Transition component |
49
+ | ` vtrans-group ` | Transition group component |
50
+ | ` vrlink ` | Router link |
51
+ | ` vrlink-param ` | Router link with param |
52
+
34
53
## Contributing
35
54
36
55
This is an open source project open to anyone. Contributors are welcome on [ GitHub] ( https://github.com/exer7um/vue3-vscode-snippets ) .
Original file line number Diff line number Diff line change 25
25
},
26
26
"Vue Named Slot" : {
27
27
"prefix" : " vslot-named" ,
28
- "body" : [" <template v-slot: ${0:name}>${1:defaultcontent}</template>" ],
28
+ "body" : [" <template # ${0:name}>${1:defaultcontent}</template>" ],
29
29
"description" : " named slot"
30
30
},
31
31
"Vue Image Source Binding" : {
You can’t perform that action at this time.
0 commit comments