Skip to content

Commit 00f7c97

Browse files
committed
upgrade version, fix emit
1 parent 1a73f89 commit 00f7c97

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## 2.1.5
6+
7+
- Fix bug: fix dollar signs in emit
8+
59
## 2.1.4
610

711
- Fix bug: put emit into template instead of script

package.json

Lines changed: 3 additions & 4 deletions
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.1.4",
6+
"version": "2.1.5",
77
"publisher": "sdras",
88
"engines": {
99
"vscode": "^1.14.0"
@@ -30,8 +30,7 @@
3030
"Snippets"
3131
],
3232
"contributes": {
33-
"snippets": [
34-
{
33+
"snippets": [{
3534
"language": "vue",
3635
"path": "./snippets/vue.json"
3736
},
@@ -85,4 +84,4 @@
8584
}
8685
]
8786
}
88-
}
87+
}

snippets/vue-template.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@
7575
},
7676
"Vue Emit from Child": {
7777
"prefix": "vemit-child",
78-
"body": ["@change=\"$emit('change', $event.target.value)\""],
78+
"body": ["@change=\"$$emit('change', $$event.target.value)\""],
7979
"description": "Vue Emit from Child Component"
8080
},
8181
"Vue Emit to Parent": {
8282
"prefix": "vemit-parent",
83-
"body": ["@change=\"${1:foo} = $event\""],
83+
"body": ["@change=\"${1:foo} = $$event\""],
8484
"description": "Vue Emit to Parent Component"
8585
},
8686
"Vue Transition Component with JavaScript Hooks": {
@@ -123,4 +123,4 @@
123123
"body": ["<router-link to=\"${1:path}\">${2:LinkTitle}</router-link>"],
124124
"description": "Path routing link"
125125
}
126-
}
126+
}

0 commit comments

Comments
 (0)