vue2 vue3模板

2022-11-20  本文已影响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"
    }
}
上一篇下一篇

猜你喜欢

热点阅读