vscode代码片段

{
    "Print to console": {
        "prefix""vue2",
        "body": [
            "<template>",
            " <div>\n",
            " </div>",
            "</template>\n",
            "<script>",
            "export default {",
            " name:'',",
            " components: {\n",
            " },",
            " props: {\n",
            " },",
            " data() {",
            " return {\n",
            " };",
            " },",
            " computed: {\n",
            " },",
            " watch: {\n",
            " },",
            " created() {\n",
            " },",
            " mounted() {\n",
            " },",
            " methods: {\n",
            " },",
            "};",
            "</script>\n",
            "<style scoped lang=\"${1:scss}\">\n",
            "</style>\n",
        ],
        "description""Create vue template"
    },
    "Print to console1": {
        "prefix""vue3",
        "body": [
            "<template>",
            " <div>\n",
            " </div>",
            "</template>\n",
            "<script setup>",
            "import { onMounted, reactive } from 'vue';",
            "onMounted(() => {});",
            "</script>\n",
            "<style scoped lang=\"${1:scss}\">\n",
            "</style>\n",
        ],
        "description""Create vue template"
    },
}
posted @ 2022-08-24 13:29  lzhflzjx  阅读(31)  评论(0)    收藏  举报