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 784d504

Browse files
committed
wip
1 parent b3cd331 commit 784d504

File tree

2 files changed

+95
-82
lines changed

2 files changed

+95
-82
lines changed

‎snippets/vue-component.cson

Lines changed: 80 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,81 @@
11
'.text.html.vue':
2-
'Vue Template Tag':
3-
'prefix': 'vtemplate',
4-
'body': """
5-
<template${1: lang="2ドル"}>0ドル</template>
6-
"""
7-
'Vue Script Tag':
8-
'prefix': 'vscript',
9-
'body': """
10-
<script${1: lang="2ドル"}>
11-
\texport default {
12-
\t\t// Options / Data
13-
\t\tdata () {
14-
\t\t\treturn {}
15-
\t\t},
16-
\t\tprops: [],
17-
\t\tcomputed: {},
18-
\t\tmethods: {}// ,
19-
\t\t// watch: {},
20-
\t\t// Options / DOM
21-
\t\t// el () {},
22-
\t\t// replace: true,
23-
\t\t// template: '',
24-
\t\t// Options / Lifecycle Hooks
25-
\t\t// init () {},
26-
\t\t// crated () {},
27-
\t\t// beforeCompile () {},
28-
\t\t// compiled () {},
29-
\t\t// ready () {},
30-
\t\t// attached () {},
31-
\t\t// detached () {},
32-
\t\t// beforeDestroy () {},
33-
\t\t// destroyed () {},
34-
\t\t// Options / Assets
35-
\t\t// directives: {},
36-
\t\t// elementDirectives: {},
37-
\t\t// filters: {},
38-
\t\t// components: {},
39-
\t\t// transitions: {},
40-
\t\t// partials: {},
41-
\t\t// Options / Misc
42-
\t\t// parent: null,
43-
\t\t// events: {},
44-
\t\t// mixins: [],
45-
\t\t// name: ''
46-
\t}
47-
</script>
48-
"""
49-
'Vue Style Tag':
50-
'prefix': 'vstyle',
51-
'body': """
52-
<style${1: lang="2ドル"}${3: scoped}>0ドル</style>
53-
"""
2+
'Vue all':
3+
'prefix': 'vall'
4+
'body': """
5+
<template${1: lang="2ドル"}>
6+
0ドル
7+
</template>
8+
9+
<script${3: lang="4ドル"}>
10+
export default {
11+
name: '',
12+
props: [],
13+
components: {},
14+
data () {
15+
return {}
16+
},
17+
computed: {},
18+
methods: {}
19+
}
20+
</script>
21+
22+
<style${5: lang="6ドル"}${7: scoped}>
23+
24+
</style>
25+
"""
26+
27+
'Vue Template Tag':
28+
'prefix': 'vtem'
29+
'body': """
30+
<template${1: lang="2ドル"}>0ドル</template>
31+
"""
32+
33+
'Vue Script Tag':
34+
'prefix': 'vsc'
35+
'body': """
36+
<script${1: lang="2ドル"}>
37+
export default {
38+
// Options / Data
39+
props: [],
40+
data () {
41+
return {}
42+
},
43+
methods: {},
44+
computed: {},
45+
// watch: {},
46+
// Options / DOM
47+
// el: '',
48+
// template: '',
49+
// render(h) {},
50+
// renderError(h) {}, // dev mode only, with hot-reload
51+
// Options / Lifecycle Hooks
52+
// beforeCreated () {},
53+
// created () {},
54+
// beforeMount() {},
55+
// mounted() {},
56+
// beforeUpdate() {},
57+
// updated() {},
58+
// activated() {},
59+
// deactivated() {},
60+
// beforeDestroy () {},
61+
// destroyed () {},
62+
// Options / Assets
63+
// directives: {},
64+
// filters: {},
65+
// components: {},
66+
// Options / Misc
67+
// name: '',
68+
// functional: true,
69+
// Options / Composition
70+
// parent: null,
71+
// mixins: [],
72+
// extends: {} // short-hand of Vue.extend
73+
}
74+
</script>
75+
"""
76+
77+
'Vue Style Tag':
78+
'prefix': 'vst'
79+
'body': """
80+
<style${1: lang="2ドル"}${3: scoped}>0ドル</style>
81+
"""

‎snippets/vue-directives.cson

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,16 @@
11
'.source.js':
2-
'Vue Directive':
3-
'prefix': 'vdirective',
4-
'body': """
5-
Vue.directive('1ドル', {
6-
\tbind () {},
7-
\tupdate (value) {},
8-
\tunbind () {}${2:// },
9-
\t${3:// }params: [4ドル],
10-
\t${5:// }paramWatchers: {6ドル},
11-
\t${7:// }deep: ${8:false},
12-
\t${9:// }twoWay: ${10:false},
13-
\t${11:// }acceptStatement: ${12:false},
14-
\t${13:// }priority: ${14:1000}
15-
})
16-
"""
17-
'Vue Element Directive':
18-
'prefix': 'veldirective',
19-
'body': """
20-
Vue.elementDirective('1ドル', {
21-
\tbind () {},
22-
\tupdate (value) {},
23-
\tunbind () {}${2:// },
24-
\t${3:// }params: [4ドル],
25-
\t${5:// }paramWatchers: {6ドル},
26-
\t${7:// }deep: ${8:false},
27-
\t${9:// }twoWay: ${10:false},
28-
\t${11:// }acceptStatement: ${12:false},
29-
\t${13:// }priority: ${14:1000}
30-
})
31-
"""
2+
'Vue Directive':
3+
'prefix': 'vdir',
4+
'body': """
5+
Vue.directive('1ドル', {
6+
\tbind () {},
7+
\tupdate (value) {},
8+
\tunbind () {}${2:// },
9+
\t${3:// }params: [4ドル],
10+
\t${5:// }paramWatchers: {6ドル},
11+
\t${7:// }deep: ${8:false},
12+
\t${9:// }twoWay: ${10:false},
13+
\t${11:// }acceptStatement: ${12:false},
14+
\t${13:// }priority: ${14:1000}
15+
})
16+
"""

0 commit comments

Comments
(0)

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