其他分享
首页 > 其他分享> > vscode中vue单文件组件快捷初始化模板:vue+tab

vscode中vue单文件组件快捷初始化模板:vue+tab

作者:互联网

{
    "Print to console": {
        "prefix": "vue",
        "body": [
            "<template>",
            "<div>\n",
            "</div>",
            "</template>\n",
            "<script>",
            "export default {",
            "  name: '',",
            "  props: [],",
            "  components: {},",
            "  data () {",
            "    return {}",
            "  },",
            "  computed: {},",
            "  methods: {},",
            "  watch: {},",
            "  beforeCreate () {},",
            "  created () {},",
            "  beforeMount () {},",
            "  // mounted () {},",
            "  beforeUpdate () {},",
            "  updated () {},",
            "  activated () {},",
            "  deactivated () {},",
            "  beforeDestroy () {},",
            "  destroyed () {},",
            "  errorCaptured () {},",
            "}",
            "</script>\n",
            "<style scoped lang=\"${1:less}\">\n",
            "</style>\n",
        ],
        "description": "Create vue template"
    }
}

  

标签:vue,computed,vscode,deactivated,Create,activated,tab
来源: https://www.cnblogs.com/qinglaoshi/p/14699768.html