Skip to content

Commit 6a86a00

Browse files
committed
Update and Fix problem of Vue.js support.
1 parent 66703a4 commit 6a86a00

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

neosnippets/vue.snip

+9-8
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ snippet scaffold
22
options head
33
abbr Scaffold <template> <script> and <style>
44
<template>
5-
${0}
5+
${0}
66
</template>
77

88
<script>
99
export default {
10-
10+
}
1111
</script>
1212

1313
<style>
@@ -18,32 +18,33 @@ snippet template_with_html
1818
options head
1919
abbr Scaffold <template> with html
2020
<template>
21-
${0}
21+
${0}
2222
</template>
2323

2424
snippet template_with_pug
2525
options head
2626
abbr Scaffold <template> with pug
2727
<template lang="pug">
28-
${0}
28+
${0}
2929
</template>
3030

3131
snippet script_with_JavaScript
3232
options head
3333
abbr Scaffold <script> with JavaScript
3434
<script>
3535
export default {
36-
${0}
36+
${0}
3737
}
3838
</script>
3939

4040
snippet script_with_TypeScript
4141
options head
4242
abbr Scaffold <script> with TypeScript
4343
<script lang="ts">
44-
export default {
45-
${0}
46-
}
44+
import Vue from 'vue'
45+
export default Vue.extend({
46+
${0}
47+
})
4748
</script>
4849

4950
snippet style_with_CSS

0 commit comments

Comments
 (0)