Teach you to generate Vue cli code snippets with vs Code

Mark community 2022-06-23 18:59:57 阅读数:942

teachgeneratevueclicode

You can customize the setting name :name.json

{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
"<div class='$2'>$5</div>",
"</template>",
"",
"<script>",
"",
"export default {",
"name:'',",
"components: {},",
"data() {",
"return {",
"",
"};",
"},",
"computed: {},",
"watch: {},",
"methods: {",
"",
"},",
"// Life cycle - The creation is complete ( You can access the current this example )",
"created() {",
"",
"},",
"// Life cycle - Mount complete ( You can visit DOM Elements )",
"mounted() {",
"",
"},",
"beforeCreate() {}, // Life cycle - Before creation ",
"beforeMount() {}, // Life cycle - Before mounting ",
"beforeUpdate() {}, // Life cycle - Before updating ",
"updated() {}, // Life cycle - After the update ",
"beforeDestroy() {}, // Life cycle - Before destruction ",
"destroyed() {}, // Life cycle - Destruction complete ",

For more information, please refer to the original , Reproduced from :https://blog.csdn.net/weixin_44519496/article/details/119924429

版权声明:本文为[Mark community]所创,转载请带上原文链接,感谢。 https://qdmana.com/2022/174/202206231758268095.html