vscode vue模板

{

  "Print to console": {        

    "prefix": "vue",        

    "body": [          

        "<template>",          

        "   <div class=\"$1\"></div>",          

        "</template>",          

        "",

        "<script>",          

        "export default {",

        "  name: '$1',",

        "   components: {},",

        "   data () {",

        "      return {",

        "",

        "      };",

        "   },",

        "",

        

        "   computed: {},",

        "",

        "   watch: {}",

        "   created() {}",

        "   mounted() {}",

        "   methods: {}",

        "}",

        "</script>",

        "<style lang='scss' scoped>",

        "  .$1{",

            "",

        "  }",

        "",

        "</style>"

  ],

  "description": "Log output to console"

}

}

上一篇:GoLang设计模式04 - 单例模式


下一篇:Vue的生命周期之created和mounted