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

Sign up
Appearance settings

Commit de3a31f

Browse files
Merge pull request #2 from lucasbastianik/master
Removing some redundancies, add style scoped and change name of component of doublequotes to singlequotes
2 parents 593ac0d + e60844f commit de3a31f

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

‎snippets/snippets.cson‎

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@
2525
<script>
2626
export default {
2727
name: "1ドル",
28-
data: function data() {
29-
return {
28+
data: () => ({
3029
31-
}
32-
}
30+
})
3331
}
3432
</script>
35-
<style${2: lang="${3:scss}"}>
33+
<style${2: lang="${3:scss}"} ${4:scoped}>
3634
</style>
3735
"""
3836
"description": "Single file component template"
@@ -88,7 +86,7 @@
8886
'beforeCreate Vuejs hook':
8987
'prefix': 'beforeCreate'
9088
'body': """
91-
beforeCreate: function beforeCreate() {
89+
beforeCreate() {
9290
//do something before creating vue instance
9391
1ドル
9492
}
@@ -98,7 +96,7 @@
9896
'created Vuejs hook':
9997
'prefix': 'created'
10098
'body': """
101-
created: function created() {
99+
created() {
102100
//do something after creating vue instance
103101
1ドル
104102
}
@@ -108,7 +106,7 @@
108106
'beforeMount Vuejs hook':
109107
'prefix': 'beforeMount'
110108
'body': """
111-
beforeMount: function beforeMount() {
109+
beforeMount() {
112110
//do something before mounting vue instance
113111
1ドル
114112
}
@@ -118,7 +116,7 @@
118116
'mounted Vuejs hook':
119117
'prefix': 'mounted'
120118
'body': """
121-
mounted: function mounted() {
119+
mounted() {
122120
//do something after mounting vue instance
123121
1ドル
124122
}
@@ -128,7 +126,7 @@
128126
'beforeUpdate Vuejs hook':
129127
'prefix': 'beforeUpdate'
130128
'body': """
131-
beforeUpdate: function beforeUpdate() {
129+
beforeUpdate() {
132130
//do something before updating vue instance
133131
1ドル
134132
}
@@ -138,7 +136,7 @@
138136
'updated Vuejs hook':
139137
'prefix': 'updated'
140138
'body': """
141-
updated: function updated() {
139+
updated() {
142140
//do something after updating vue instance
143141
1ドル
144142
}
@@ -148,7 +146,7 @@
148146
'beforeDestroy Vuejs hook':
149147
'prefix': 'beforeDestroy'
150148
'body': """
151-
beforeDestroy: function beforeDestroy() {
149+
beforeDestroy() {
152150
//do something before destroying vue instance
153151
1ドル
154152
}
@@ -158,7 +156,7 @@
158156
'destroyed Vuejs hook':
159157
'prefix': 'destroyed'
160158
'body': """
161-
destroyed: function destroyed() {
159+
destroyed() {
162160
//do something after destroying vue instance
163161
1ドル
164162
}
@@ -181,7 +179,7 @@
181179
'prefix': 'methods'
182180
'body': """
183181
methods: {
184-
${1:methodName}: function ${1:methodName}() {
182+
${1:methodName}() {
185183
2ドル
186184
}
187185
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /