Skip to content

Commit 1a73f89

Browse files
committed
fix bug in emit
1 parent ba5c565 commit 1a73f89

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

CHANGELOG.md

+4
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.4
6+
7+
- Fix bug: put emit into template instead of script
8+
59
## 2.1.3
610

711
- Add in boilerplate to use Composition API inside Options API

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.1.3",
6+
"version": "2.1.4",
77
"publisher": "sdras",
88
"engines": {
99
"vscode": "^1.14.0"

snippets/vue-script.json

-10
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,6 @@
9898
],
9999
"description": "Vue Props with Default"
100100
},
101-
"Vue Emit from Child": {
102-
"prefix": "vemit-child",
103-
"body": ["@change=\"$emit('change', $event.target.value)\""],
104-
"description": "Vue Emit from Child Component"
105-
},
106-
"Vue Emit to Parent": {
107-
"prefix": "vemit-parent",
108-
"body": ["@change=\"${1:foo} = $event\""],
109-
"description": "Vue Emit to Parent Component"
110-
},
111101
"Vue Import File": {
112102
"prefix": "vimport",
113103
"body": ["import ${1:New} from '@/components/${1:New}.vue';"],

snippets/vue-template.json

+10
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@
7373
],
7474
"description": "vue multiple conditional class bindings"
7575
},
76+
"Vue Emit from Child": {
77+
"prefix": "vemit-child",
78+
"body": ["@change=\"$emit('change', $event.target.value)\""],
79+
"description": "Vue Emit from Child Component"
80+
},
81+
"Vue Emit to Parent": {
82+
"prefix": "vemit-parent",
83+
"body": ["@change=\"${1:foo} = $event\""],
84+
"description": "Vue Emit to Parent Component"
85+
},
7686
"Vue Transition Component with JavaScript Hooks": {
7787
"prefix": "vanim",
7888
"body": [

0 commit comments

Comments
 (0)