Skip to content

Commit 81c0002

Browse files
committed
vue-template snippets #8
1 parent a9bb749 commit 81c0002

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,25 @@ These snippets were made to speed up Vue 3 development. With it you can write bo
3131
| `vbase-styl` | Base for Vue 3 File with `<script setup>`, `TypeScript` and `Stylus` |
3232
| `vbase-ns` | Base for Vue 3 File with `<script setup>`, `TypeScript` and no style |
3333

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+
3453
## Contributing
3554

3655
This is an open source project open to anyone. Contributors are welcome on [GitHub](https://github.com/exer7um/vue3-vscode-snippets).

snippets/vue-template.code-snippets

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"Vue Named Slot": {
2727
"prefix": "vslot-named",
28-
"body": ["<template v-slot:${0:name}>${1:defaultcontent}</template>"],
28+
"body": ["<template #${0:name}>${1:defaultcontent}</template>"],
2929
"description": "named slot"
3030
},
3131
"Vue Image Source Binding": {

0 commit comments

Comments
 (0)