Skip to content

Commit 9778845

Browse files
committed
fix nuxt-link
1 parent d07fb02 commit 9778845

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ As shown in the table below, snippet `vmData` has body like `${this, vm}.$data`
183183
[vue-syntax-highlight (vue.tmLanguage)](https://github.com/vuejs/vue-syntax-highlight/blob/master/vue.tmLanguage)
184184

185185
--------------------------------------
186+
##### 2019/01/27 (0.1.11)
187+
* Fix sinppets
188+
186189
##### 2018/12/19 (0.1.10)
187190
* Update sinppets (like `watchWithOptions` / `asyncData` / `nuxt` / `nuxtChild` / `nuxtLink` and so on)
188191

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"icon": "img/logo.png",
77
"description": "A Vue.js 2 Extension",
88
"license": "MIT",
9-
"version": "0.1.10",
9+
"version": "0.1.11",
1010
"engines": {
1111
"vscode": "^1.5.0"
1212
},

snippets/html.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"prefix": "template",
44
"body": [
55
"<template>",
6-
"\t<div$1>",
6+
"\t<${1:div}$2>",
77
"\t\t$0",
8-
"\t</div>",
8+
"\t</${1:div}>",
99
"</template>"
1010
],
1111
"description": "template element"
@@ -383,8 +383,8 @@
383383
"nuxtLink": {
384384
"prefix": "nuxtLink",
385385
"body": [
386-
"<nuxt-link to=\"$1\"/>$0</nuxt-link>"
386+
"<nuxt-link ${1|to,:to|}=\"$2\">$0</nuxt-link>"
387387
],
388388
"description": "This component is used to provide navigations between page components."
389-
},
389+
}
390390
}

0 commit comments

Comments
 (0)