vue3代码片段
v2:
{
"Print to v2": {
"prefix": "v2",
"body": [
"<template>",
" <div>\n",
" </div>",
"</template>\n",
"<script>",
"export default {",
" data() {",
" return {\n",
" };",
" },",
" created() {\n",
" },",
" mounted() {\n",
" },",
" methods: {\n",
" }",
"};",
"</script>\n",
"<style scoped lang=\"${1:scss}\">\n",
"</style>\n",
],
"description": "Create vue template"
}
}
v3:
{
"Vue3.2快速生成模板": {
"prefix": "v3",
"body": [
"<!-- $1 -->",
"<template>",
"\t<div class=\"\">",
"\t\t$3",
"\t</div>",
"</template>\n",
"<script setup>",
"import {} from 'vue'",
"\t$2",
"</script>\n",
"<style lang=\"scss\" scoped>",
"\t$4",
"</style>"
],
"description": "Vue3.2"
}
}
输入v3即可生成代码片段
浙公网安备 33010602011771号