<template>
  <div class="Main">
    <leftMenu></leftMenu>
    <div class="body">
      <rxHeader></rxHeader>
      <rxBreadcrumb></rxBreadcrumb>
      <div class="main-router">
        <keep-alive>
          <router-view v-if="$route.meta.keepAlive"></router-view>
        </keep-alive>
        <router-view v-if="!$route.meta.keepAlive"></router-view>
      </div>
    </div>
  </div>

</template>

<script>
import leftMenu from "@/views/main/modules/leftMenu";
import rxHeader from "./modules/rx-header";
import rxBreadcrumb from './modules/rx-breadcrumb'
export default {
  name: "Main",
  components:{
    leftMenu,
    rxHeader,
    rxBreadcrumb
  }
}
</script>

<style lang="less" scoped>
.Main {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: hidden;

  .body {
    flex: 1;
    display: flex;
    width: calc(100% - 240px);
    flex-direction: column;

  }

  .main-router {
    width: 100%;
    height: 100%;
    flex: 1;
    overflow-y: auto;
    /*border:10px solid black;*/
    /*overflow-x: scroll;*/
    /*border:1px solid black;*/
    /*position: relative;*/
  }
}
</style>
