vsCode中vue使用者片段(常用)
阿新 • • 發佈:2021-06-29
"Create vue template": { "prefix": "vue", "body": [ "<template>", "\t<div>", "\t\t$0", "\t</div>", "</template>\n", "<script>", "import {mapActions,mapGetters} from \"vuex\"","export default {", "\tdata() {", "\t\treturn {\n", "\t\t};", "\t},", "\tcomponents:{\n", "\t\t},", "\tcomputed:{", "\t\t...mapGetters({\n","\t\t}),", "\t},", "\tmethods:{", "\t\t...mapActions({\n", "\t\t}),", "\t},", "\tmounted(){\n", "\t},","};", "</script>\n", "<style lang='less' scoped>\n", "</style>" ], "description": "Create vue template" },
帶有空格,換行 還有 游標起始位”$0“