|
@@ -0,0 +1,113 @@
|
|
|
+<template>
|
|
|
+ <div class="homeLeft">
|
|
|
+ <a-menu
|
|
|
+ style="height: 100%;width: 200px;display: inline-block"
|
|
|
+ mode="inline"
|
|
|
+ theme="dark"
|
|
|
+ >
|
|
|
+
|
|
|
+ <a-menu-item-group key="g1" >
|
|
|
+ <template slot="title">
|
|
|
+ <div @mouseover="showNav" class="allNavBtn">
|
|
|
+ <div style="height: 12px"></div>
|
|
|
+ <a-icon style="color: white" type="appstore" />
|
|
|
+ <span style="color: white;display: inline-block;margin-left: 12px">全部导航模块</span>
|
|
|
+ <a-icon style="color: white;float: right;margin-right: 15px;padding-top: 3px;font-size: 12px" type="right" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </a-menu-item-group>
|
|
|
+
|
|
|
+ <a-menu-item-group key="common" @mouseover="hideNav" >
|
|
|
+ <template slot="title">
|
|
|
+ <div style="text-align: center;margin-bottom: 12px">
|
|
|
+ <span style="color: white;display: inline-block;margin-left: 12px">常用功能</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <a-menu-item>
|
|
|
+ 智能看板
|
|
|
+ </a-menu-item>
|
|
|
+ </a-menu-item-group>
|
|
|
+
|
|
|
+ </a-menu>
|
|
|
+
|
|
|
+ <div class="ioc-nav" v-if="navVisible" >
|
|
|
+ <NavigationPage />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import NavigationPage from "@/components/home/NavigationPage.vue";
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ navVisible: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ NavigationPage
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ showNav() {
|
|
|
+ this.navVisible = true;
|
|
|
+ },
|
|
|
+ hideNav() {
|
|
|
+ this.navVisible = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+@menu-dark-bg: #266a99;
|
|
|
+@menu-dark-submenu-bg: #266a99;
|
|
|
+@menu-dark-color: #fff;
|
|
|
+@menu-dark-arrow-color: #fff;
|
|
|
+@menu-dark-highlight-color: #fff;
|
|
|
+.homeLeft {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+
|
|
|
+ .allNavBtn {
|
|
|
+ width: 100%;
|
|
|
+ cursor: pointer;
|
|
|
+ //text-align: center;
|
|
|
+ padding-bottom: 10px;
|
|
|
+ padding-left: 15%;
|
|
|
+ margin: 12px 0;
|
|
|
+ }
|
|
|
+ .allNavBtn:hover {
|
|
|
+ background-color: @primary-color;
|
|
|
+ }
|
|
|
+
|
|
|
+ .ioc-nav {
|
|
|
+ display: inline-block;
|
|
|
+ vertical-align: top;
|
|
|
+ width: 70%;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/ .ant-menu-item-group-title {
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ /*菜单样式*/
|
|
|
+ /deep/ .ant-menu-sub {
|
|
|
+ box-shadow: none !important;
|
|
|
+ }
|
|
|
+ /deep/ .ant-menu-item-selected {
|
|
|
+ color: @menu-dark-selected-item-text-color !important;
|
|
|
+ }
|
|
|
+ .ant-menu-inline-collapsed > .ant-menu-item {
|
|
|
+ padding: 0 !important;
|
|
|
+ margin-left: 0 !important;
|
|
|
+ padding-left: 33% !important;
|
|
|
+ }
|
|
|
+ /deep/ .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item {
|
|
|
+ padding: 0 !important;
|
|
|
+ margin-left: 0 !important;
|
|
|
+ padding-left: 33% !important;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|