App.vue 1.66 KB
<!--
 * @Author: jiangbotao
 * @Date: 2019-12-12 17:40:15
 * @LastEditors: jiangbotao
 * @LastEditTime: 2019-12-14 10:21:51
 * @FilePath: \mymapbox\src\App.vue
 -->
<template>
<a-layout id="components-layout-demo-top-side-2">
    <a-layout-header class="header">
      <a-icon type="compass" />&nbsp;&nbsp;温州项目VUE 2DMap示例(v10.0)
      <a-menu
        theme="dark"
        mode="horizontal"
        :defaultSelectedKeys="['2']"
        :style="{ lineHeight: '64px' }">
      </a-menu>
    </a-layout-header>
    <a-layout>
      <a-layout-sider width="200" style="background: #fff">
        <MyMenu></MyMenu>
      </a-layout-sider>
      <a-layout style="padding: 10px 10px 10px 10px">
        <a-layout-content :style="{ background: '#fff', padding: '10px', 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>
  .ant-layout-header {
    height: 64px;
    padding: 0 10px;
    line-height: 64px;
    background: #096fd0;
    color: white;
    font-size: 30px;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #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;
  }
  #app{
    height: 100%;
  }
</style>