-步骤如下图
在vue.json.code-snippets输入以下代码片段
"Print1 to console": {
"prefix": "vv3",
"body": [
"<template>",
"\t<div>",
"\t</div>",
"</template>",
"<script lang=\"ts\">",
"import { defineComponent } from 'vue';",
"\nexport default defineComponent({",
"\tname: 'App',",
"});",
"</script>\n",
],
"description": "Log output to console"
}
复制代码
然后在新创建的vue文件输入vv3可快速搭建相关模版.
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END