App.vue 1.94 KB
<!--
 * @Author: jiangbotao
 * @Date: 2019-12-03 22:31:08
 * @LastEditors: jiangbotao
 * @LastEditTime: 2019-12-16 00:39:49
 * @FilePath: \superglobevue\src\App.vue
 -->
<template>
<a-layout id="components-layout-demo-top-side-2">
    <a-layout-header class="header" style="background-color:#3578b1; padding: 0px 25px;">
      <span class="fa fa-globe fa-lg"></span>&nbsp;&nbsp;温州项目VUE 3DMap示例(v10.0)
      <a-menu
        theme="dark"
        mode="horizontal"
        :defaultSelectedKeys="['2']"
        :style="{ lineHeight: '64px' }"
      >
      </a-menu>
    </a-layout-header>
    <a-layout>
      <a-layout-sider collapsible v-model="collapsed" style="background-color:white;">
        <MyMenu></MyMenu>
      </a-layout-sider>
      <a-layout style="padding: 10px 10px 10px 10px">
        <a-layout-content :style="{ background: '#fff', padding: '12px', margin: 0, minHeight: '500px' }">
          <div id="app" style="position: relative; width:100%;">
            <router-view/>
          </div>
        </a-layout-content>
      </a-layout>
    </a-layout>
  </a-layout>
</template>

<script>
import MyMenu from './components/menu/MyMenu';

export default {
  name: 'App',
  data() {
    return {
      collapsed: true,
    };
  },
  components:{
    MyMenu
  }
}
</script>

<style scoped>
  .ant-layout-header {
    height: 64px;
    padding: 0 25px;
    line-height: 64px;
    background: #0b5296;
    color: white;
    font-size: 26px;
    border-bottom: 2px solid #bb5905;
  }
  .ant-layout {
    height: 100%;
  }
  #components-layout-demo-top-side-2 .logo {
    width: 120px;
    height: 31px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 28px 16px 0;
    float: left;
  }
  .ant-layout-sider {
    position: relative;
    min-width: 0;
    background:white;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
  }
  .ant-layout-sider-trigger {
    color: #b73c3c;
    background: #ffffff;
  }
  #app{
    height: 100%;
  }
</style>