<!--
|
* @Author: shuishen 1109946754@qq.com
|
* @Date: 2023-04-06 20:38:03
|
* @LastEditors: shuishen 1109946754@qq.com
|
* @LastEditTime: 2023-04-06 21:50:21
|
* @FilePath: \hydraulic-wh\src\page\index\index.vue
|
* @Description:
|
*
|
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
|
-->
|
<!--
|
* @Author: shuishen 1109946754@qq.com
|
* @Date: 2023-04-06 20:38:03
|
* @LastEditors: shuishen 1109946754@qq.com
|
* @LastEditTime: 2023-04-06 21:43:54
|
* @FilePath: \hydraulic-wh\src\page\index\index.vue
|
* @Description:
|
*
|
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
|
-->
|
<template>
|
<div class="container">
|
<top-menu @topMenuChage="topMenuChage"></top-menu>
|
<suber-menu @suberMenuChage="suberMenuChage"></suber-menu>
|
<div class="main-box">
|
<div class="left-menu">
|
<sidebar-menu></sidebar-menu>
|
</div>
|
<div class="right-content">
|
<div>
|
<router-view></router-view>
|
</div>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
|
<script>
|
import topMenu from './top/'
|
|
import suberMenu from './suber/'
|
|
import sidebarMenu from './sidebar/'
|
|
export default {
|
name: "index",
|
|
components: { topMenu, suberMenu, sidebarMenu },
|
|
data () {
|
return {
|
|
}
|
},
|
|
methods: {
|
topMenuChage (item) {
|
console.log(item)
|
},
|
|
suberMenuChage (item) {
|
console.log(item)
|
}
|
},
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.container {
|
height: 100%;
|
display: flex;
|
flex-direction: column;
|
|
.main-box {
|
margin-top: 16px;
|
flex: 1;
|
display: flex;
|
|
.left-menu {
|
width: 288px;
|
height: 100%;
|
background: #fff;
|
}
|
|
.right-content {
|
padding: 16px;
|
padding-top: 0;
|
flex: 1;
|
height: 100%;
|
|
&>div {
|
height: 100%;
|
}
|
}
|
}
|
}
|
</style>
|