huzhuhua

在工具-->代码块设置-->vue代码块里面添加

    "vue": {
        "body": [
           "<style lang=\'less\' scoped>",
                "#template{\n\n}",
                "</style>",
                "<template>",
                "    <view id=\"template\">\n",
                "    </view>",
                "</template>",
                "<script>",
                "export default {",
                "   data() {",
                "      return {\n",
                "      }",
                "   },",
                "methods:{\n",
    
                "},",
                "   mounted() {",
                "   }",
                "}",
                "</script>"
        ],
        "description": "快速生成vue模版",
        "prefix": "vuetemplate",
        "project": "uni-app",
        "scope": "source.vue.html"

保存之后 ,在新建的vue文件里面清空输入vue按enter就会快速 生成 了

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-03
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-08-20
猜你喜欢
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
相关资源
相似解决方案