首页 > 其他 > 详细

自定义创建vue文件代码块

时间:2019-12-18 16:55:21      阅读:208      评论:0      收藏:0      [点我收藏+]
"vue-component": {
        "prefix": "vue-component",
        "body": [
            "<template>",
            "\t<div>\n",
            "\t</div>",
            "</template>\n",
            "<script>",
            "\texport default {",
            "\t\tprops: {\n",
            "\t\t},",
            "\t\tcomponents: {\n",
            "\t\t},",
            "\t\tdata(){",
            "\t\t\treturn {\n\t\t\t\t$0",
            "\t\t\t}",
            "\t\t},",
            "\t\tmethods: {\n",
            "\t\t}",
            "\t}",
            "</script>\n",
            "<style lang=\"scss\">\n",
            "</style>"
        ],
        "description": "vue componemt"
    }
}

创建vue项目后输入vue-component,输入过程中就有提示,选择就好了

<template>
    <div>

    </div>
</template>

<script>
    export default {
        props: {

        },
        components: {

        },
        data(){
            return {
                
            }
        },
        methods: {

        }
    }
</script>

<style lang="scss">

</style>

自定义创建vue文件代码块

原文:https://www.cnblogs.com/aidixie/p/12060527.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!