{
    "Print to console": {
      "prefix": "v3",
      "body": [
        "<script setup>",
        "import { ref, reactive, onBeforeMount, onMounted, onBeforeUpdate, onUpdated, onBeforeUnmount, onUnmounted} from \"vue\"",
        "//组件挂载到节点上之前执行的函数",
        "onBeforeMount(()=>{})\n",
        "//组件挂载完成后执行的函数",
        "onMounted(()=>{})\n",
        "//组件更新之前执行的函数",
        "onBeforeUpdate(()=>{})\n",
        "//组件更新完成之后执行的函数",
        "onUpdated(()=>{})\n",
        "//组件卸载之前执行的函数",
        "onBeforeUnmount(()=>{})\n",
        "//组件卸载完成后执行的函数",
        "onUnmounted(()=>{})\n",
   
        "</script>\n",
        "<template>",
        "  <div class=\"\"></div>",
        "</template>\n",
        "<style lang=\"less\" scoped></style>",
        "$2"
      ],
      "description": "Log output to console"
    }
  }
 
 
posted on 2023-06-28 01:28  假装新手  阅读(139)  评论(0编辑  收藏  举报