vue2
{
"Print to console": {
"prefix": "sc",
"body": [
"<template>",
" <div>",
"",
" </div>",
"</template>",
"",
"<script>",
"export default {",
" data() {",
" return {",
"",
" }",
" },",
" methods: {",
"",
" },",
" created() {",
"",
" },",
"}",
"</script>",
"<style scoped>",
"",
"</style>"
],
"description": "Log output to console"
}
}
vue3
{
"Print to console": {
"prefix": "sc1",
"body": [
"<template>",
" <div>",
" {{count}}",
" </div>",
"</template>",
"",
"<script>",
"import { ref } from 'vue'",
"export default {",
" setup () {",
" const count = ref(0)",
" return {",
" count",
" }",
" },",
"}",
"</script>",
"<style lang='less' scoped>",
"",
"</style>"
],
"description": "Log output to console"
}
}
|