美文网首页
vue2 vue3模板

vue2 vue3模板

作者: 冰点雨 | 来源:发表于2022-11-20 15:24 被阅读0次

    首选项-->用户片段-->搜索vue.json(或新建vue,.json),输入以下代码

    {
        "Print to console3": {
            "prefix": "vue3",
            "body": [
                "<template>",
                "  <div class=\"\">\n ",
                "  </div>",
                "</template>",
                "<script setup>",
                "import {} from 'vue'",
                "",
                "</script>",
                "<style lang=\"scss\" scoped>\n",
                "</style>",
                ""
            ],
            "description": "Log output to console"
        },
        "Print to console2": {
            "prefix": "vue2",
            "body": [
                "<template>",
                "  <div>\n",
                "  </div>",
                "</template>",
                "<script>",
                "export default {",
                "  name: 'APP',",
                "  data () {",
                "    return {",
                "    }",
                "  },",
                "  methods: {",
                "  },",
                "  created () {",
                "  },",
                "  mounted () {",
                "  },",
                "}",
                "</script>",
                "<style lang=\"scss\" scoped>\n",
                "</style>",
                "$2"
            ],
            "description": "Log output to console"
        }
    }
    

    相关文章

      网友评论

          本文标题:vue2 vue3模板

          本文链接:https://www.haomeiwen.com/subject/vrfkxdtx.html