HbuilderX 快速生成vue模版

2020-04-24 14:45:18 蜻蜓队长

在工具-->代码块设置-->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就会快速 生成 了

以上内容来自于网络,如有侵权联系即删除
相关文章

上一篇: 安卓逆向13.静态Patch IDA Pro v7.2 android_server 默认调试端口 23946

下一篇: webpack构建速度和体积优化策略

客服紫薇:15852074331
在线咨询
客户经理