Skip to content

Commit 8a7462a

Browse files
committed
add in named slot
1 parent ac97ae4 commit 8a7462a

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

CHANGELOG.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
# Change Log
1+
# Changelog
22

33
All notable changes to the "vue-vscode-snippets" extension will be documented in this file.
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7-
## 2.0.9
7+
## 2.1.0
8+
9+
- Further Vue 3 Composition API support
10+
- Adds in Emit
11+
- Adds in named slot
12+
- Better TypeScript support
13+
- Removes increment/decrement
14+
- Updates gsap
15+
16+
## 2.0.0
817

918
- Vue 3 Composition API support
1019

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
5454
| `vmodel` | Semantic v-model directive |
5555
| `vmodel-num` | Semantic v-model number directive |
5656
| `von` | v-on click handler with arguments |
57+
| `vslot-named` | Named slot |
5758
| `vel-props` | Component element with props |
5859
| `vsrc` | Image src binding |
5960
| `vstyle` | Inline style binding |

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Vue VSCode Snippets",
44
"description": "Snippets that will supercharge your Vue workflow",
55
"icon": "images/vue-logo.png",
6-
"version": "2.0.0",
6+
"version": "2.1.0",
77
"publisher": "sdras",
88
"engines": {
99
"vscode": "^1.14.0"

snippets/vue-template.json

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"body": ["<${1:component} :${1:propName}=\"${0}\"></${1:component}>"],
3131
"description": "component element with props"
3232
},
33+
"Vue Named Slot": {
34+
"prefix": "vslot-named",
35+
"body": ["<template v-slot:${0:name}>${1:defaultcontent}</template>"],
36+
"description": "named slot"
37+
},
3338
"Vue Image Source Binding": {
3439
"prefix": "vsrc",
3540
"body": [

0 commit comments

Comments
 (0)