wcs_client_s7_baoying/src/view/layout/MainPage.vue

37 lines
815 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

主要框架
<template>
<div>
<MainHeader style="width: 100%; height: 50px"/>
<router-view/>
</div>
</template>
<script>
// 这里可以导入其他文件(比如:组件,工具 js第三方插件 jsjson 文件,图片文件等等)
// 例如import 《组件名称》 from '《组件路径》 ';
import MainHeader from "@/view/layout/MainHeader.vue";
export default {
// import 引入的组件需要注入到对象中才能使用
components: {MainHeader},
props: {},
data() {
// 这里存放数据
return {}
},
// 计算属性 类似于 data 概念
computed: {},
// 监控 data 中的数据变化
watch: {},
// 方法集合
methods: {},
// 生命周期 - 挂载完成(可以访问 DOM 元素)
mounted() {
}
}
</script>
<style scoped>
</style>