<template>
  <div id="app">
    <div class="ec-header">
      <nav-header :logoImg="logoImg" :isLoadSysInfo="true" @logout="onLogout"></nav-header>
    </div>
    <div class="ec-main">
      <div class="ec-menu">
        <left-menu></left-menu>
      </div>
      <div class="ec-body">
        <breadcrumb-nav></breadcrumb-nav>
        <router-link :to="{ path: '/test-a' }">TestA</router-link> | <router-link :to="{ path: '/test-b' }">TestB</router-link> | <router-link :to="{ path: '/test-a-1' }">TestA</router-link> | <router-link :to="{ path: '/test-b-1' }">TestB</router-link> | <router-link :to="{ path: '/test-a-2' }">TestA</router-link> | <router-link :to="{ path: '/test-b-2' }">TestB</router-link> |
        <router-link :to="{ path: '/test-a-3' }">TestA</router-link> | <router-link :to="{ path: '/test-b-3' }">TestB</router-link> |
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";

@Component({
  name: "EcApp"
})
export default class App extends Vue {
  logoImg = require("@/assets/img/nav-header-logo.png");
  onLogout(event: any): void {
    console.log(event);
  }
}
</script>

<style lang="scss" scoped>
#app {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  .ec-header {
  }
  .ec-main {
    display: flex;
    justify-content: flex-start;
    height: calc(100vh - 50px);
    overflow-y: auto;
    .ec-menu {
    }
    .ec-body {
      width: 100%;
      height: calc(100vh - 50px);
      overflow-y: auto;
      background-color: #e9eaf2;
    }
  }
}
</style>
