Skip to content

Commit

Permalink
V0.05
Browse files Browse the repository at this point in the history
  • Loading branch information
OYsun authored Jan 3, 2017
2 parents 720f65a + 0549fa0 commit d2d6256
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
13 changes: 10 additions & 3 deletions src/snippets/html.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,28 @@
"key": {
"prefix": "key",
"body": [
"key=\"$0\""
"key=\"$1\""
],
"description": "The key special attribute is primarily used as a hint for Vue’s virtual DOM algorithm to identify VNodes when diffing the new list of nodes against the old list. "
},
"ref": {
"prefix": "ref",
"body": [
"ref=\"$0\""
"ref=\"$1\""
],
"description": "ref is used to register a reference to an element or a child component."
},
"soltName": {
"prefix": "soltName",
"body": [
"<solt name=\"$1\"></solt>"
],
"description": "Used on content inserted into child components to indicate which named slot the content belongs to."
},
"solt": {
"prefix": "solt",
"body": [
"solt=\"$0\""
"solt=\"$1\""
],
"description": "Used on content inserted into child components to indicate which named slot the content belongs to."
},
Expand Down
19 changes: 12 additions & 7 deletions src/snippets/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"vue": {
"prefix": "Vue",
"body": [
"new Vue({",
"\t$1",
"})"
"new Vue({\n\t$1\n})"
],
"description": "Create a vue instance"
},
Expand Down Expand Up @@ -757,31 +755,38 @@
],
"description": "[vuex]Hot swap new actions and mutations. "
},
"namespaced": {
"prefix": "namespaced",
"body": [
"namespaced: true"
],
"description": "[vuex]If you want your modules to be more self-contained or reusable, you can mark it as namespaced with namespaced: true. When the module is registered, all of its getters, actions and mutations will be automatically namespaced based on the path the module is registered at"
},
"mapState": {
"prefix": "mapState",
"body": [
"mapState(${1:[]|{\\}})"
"mapState('${modulePath}', ${[]|{\\}})"
],
"description": "[vuex]Create component computed options that return the sub tree of the Vuex store. "
},
"mapGetters": {
"prefix": "mapGetters",
"body": [
"mapGetters(${1:[]|{\\}})"
"mapGetters('${modulePath}', ${1:[]|{\\}})"
],
"description": "[vuex]Create component computed options that return the evaluated value of a getter."
},
"mapActions": {
"prefix": "mapActions",
"body": [
"mapActions(${1:[]|{\\}})"
"mapActions('${modulePath}', ${1:[]|{\\}})"
],
"description": "[vuex]Create component methods options that dispatch an action."
},
"mapMutations": {
"prefix": "mapMutations",
"body": [
"mapMutations(${1:[]|{\\}})"
"mapMutations('${modulePath}', ${1:[]|{\\}})"
],
"description": "[vuex]Create component methods options that commit a mutation"
},
Expand Down

0 comments on commit d2d6256

Please sign in to comment.