123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
{ "bpheader": { "prefix": "bpheader", "body": [ "<!--", "/**", "* Copyright (c) ${CURRENT_YEAR} Copyright bp All Rights Reserved.", "* Author: lipengxiang", "* Date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}", "* Desc: $1", "*/", " -->" ], "description": "bpheader" }, "bpc1": { "prefix": "bpc1", "body": [ "//--------------------------------------------------------" ], "description": "single line comment" }, "bpc2": { "prefix": "bpc2", "body": [ "//--------------------------------------------------------", "// $1", "//--------------------------------------------------------" ], "description": "double line comment" }, "bpfunc": { "prefix": "bpfunc", "body": [ "/**", "* @desc: $1", "* @return: $2", "*/" ], "description": "function comment" }, "debug": { "prefix": "debug", "body": [ "console.debug($1);" ], "description": "debug" }, "log": { "prefix": "log", "body": [ "console.log($1);" ], "description": "log" }, "error": { "prefix": "error", "body": [ "console.error($1);" ], "description": "error" }, "warn": { "prefix": "warn", "body": [ "console.warn($1);" ], "description": "warn" }, "bp-file": { "prefix": "bp-file", "body": [ "<!--", "/**", "* Copyright (c) ${CURRENT_YEAR} Copyright bp All Rights Reserved.", "* Author: lipengxiang", "* Date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}", "* Desc: $1", "*/", " -->", "", "<template>", "</template>", "", "<script>", "", "export default {", " name: '',", " components: {", " },", " props: {", " },", " data() {", " return {};", " },", " computed: {", " },", " created() {", " },", " beforeDestroy() {", " },", " beforeMount() {", " },", " mounted() {", " },", " methods: {", " },", "}", "</script>", "", "<style>", "</style>" ] }, "bp-file-ts": { "prefix": "bp-file-ts", "body": [ "<!--", "/**", "* Copyright (c) ${CURRENT_YEAR} Copyright bp All Rights Reserved.", "* Author: lipengxiang", "* Date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}", "* Desc: $1", "*/", " -->", "", "<template>", "</template>", "", "<script lang=\"ts\">", "import { Component, Vue, Prop, Watch, Provide, } from 'vue-property-decorator';", "import { State, Mutation } from 'vuex-class';", "", "@Component({", " components: {", " }", "})", "export default class extends Vue {", " //", " // event.", " @Emit()", " demoEvent(type: string) { }", " ", " //", " // state.", " // @State(state=>state.demo) demo:DEMO_TYPE;", " ", " //", " // Prop", " // @Prop({ type: number }) demo: number;", " ", " //", " // data.", " // @Provide() demo:number = 1;", " ", " //", " // computed.", " // get demo() { return xxxx; }", " ", " //", " // watch.", " // @Watch('child')", " // onChildChanged(val: string, oldVal: string) { }", " ", " //", " // lifecycle hook.", " constructor() {", " super();", " }", " ", " mounted() {", " }", " ", "}", "</script>", "" ] } }