forked from marzsv/atom-vue-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue-component.cson
81 lines (75 loc) · 1.46 KB
/
vue-component.cson
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
'.text.html.vue':
'Vue all':
'prefix': 'vall'
'body': """
<template${1: lang="$2"}>
$0
</template>
<script${3: lang="$4"}>
export default {
name: '',
props: [],
components: {},
data () {
return {}
},
computed: {},
methods: {}
}
</script>
<style${5: lang="$6"}${7: scoped}>
</style>
"""
'Vue Template Tag':
'prefix': 'vtem'
'body': """
<template${1: lang="$2"}>$0</template>
"""
'Vue Script Tag':
'prefix': 'vsc'
'body': """
<script${1: lang="$2"}>
export default {
// Options / Data
props: [],
data () {
return {}
},
methods: {},
computed: {},
// watch: {},
// Options / DOM
// el: '',
// template: '',
// render(h) {},
// renderError(h) {}, // dev mode only, with hot-reload
// Options / Lifecycle Hooks
// beforeCreated () {},
// created () {},
// beforeMount() {},
// mounted() {},
// beforeUpdate() {},
// updated() {},
// activated() {},
// deactivated() {},
// beforeDestroy () {},
// destroyed () {},
// Options / Assets
// directives: {},
// filters: {},
// components: {},
// Options / Misc
// name: '',
// functional: true,
// Options / Composition
// parent: null,
// mixins: [],
// extends: {} // short-hand of Vue.extend
}
</script>
"""
'Vue Style Tag':
'prefix': 'vst'
'body': """
<style${1: lang="$2"}${3: scoped}>$0</style>
"""