打开 设置==>file and code templates如图

<comment>
# 组件注释
</comment>
<template>
<div class="${COMPONENT_NAME}">
</div>
</template>
<script>
export default {
name: '${COMPONENT_NAME}',
components: {
},
data () {
return {
}
},
props: {
},
watch: {
},
methods: {
},
computed: {
},
created () {
},
mounted () {
},
destroyed () {
}
}
</script>
<style lang="scss" scoped>
</style>
网友评论