Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1a73f89

Browse filesBrowse files
committed
fix bug in emit
1 parent ba5c565 commit 1a73f89
Copy full SHA for 1a73f89

File tree

4 files changed

+15
-11
lines changed
Filter options

4 files changed

+15
-11
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines 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.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

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: snippets/vue-script.json
-10Lines changed: 0 additions & 10 deletions
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

Copy file name to clipboardExpand all lines: snippets/vue-template.json
+10Lines changed: 10 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.