Live2d Test Env

vue3代码片段

v2:

{
  "Print to v2": {
    "prefix": "v2",
    "body": [
      "<template>",
      "    <div>\n",
      "    </div>",
      "</template>\n",
      "<script>",
      "export default {",
      "    data() {",
      "        return {\n",
      "        };",
      "    },",
      "    created() {\n",
      "    },",
      "    mounted() {\n",
      "    },",
      "    methods: {\n",
      "    }",
      "};",
      "</script>\n",
      "<style scoped lang=\"${1:scss}\">\n",
      "</style>\n",
    ],
    "description": "Create vue template"
  }
}

v3:

{
  "Vue3.2快速生成模板": {
    "prefix": "v3",
    "body": [
      "<!-- $1 -->",
      "<template>",
      "\t<div class=\"\">",
      "\t\t$3",
      "\t</div>",
      "</template>\n",
      "<script setup>",
      "import {} from 'vue'",
      "\t$2",
      "</script>\n",
      "<style lang=\"scss\" scoped>",
      "\t$4",
      "</style>"
    ],
    "description": "Vue3.2"
  }
}

输入v3即可生成代码片段

posted @ 2022-03-20 15:27  致爱丽丝  阅读(711)  评论(0)    收藏  举报