<template>
<div>
//页面基本布局
</div>
</template>
<script>
export default {
components: { },//导入的子组件要在此注册
name: '',//当前组件的名字
data() {
return {};//可以定义数据及变量
},
mounted() {},//页面初始化显示数据调用
methods: {},//存放方法
computed: {},//计算
watch: {},//监听
};
</script>
<style lang='scss' scoped>
//样式
</style>
vue2组件的书写方法
猜你喜欢
转载自blog.csdn.net/Frazier1995/article/details/118110418
今日推荐
周排行