<template>
  <div id="app" :class="device">
    <router-view v-if="isRouterAlive" />
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      isRouterAlive: true
    }
  },
  computed: {
    device() {
      return this.$store.state.app.device
    }
  },
  provide() {
    return {
      reload: this.reload
    }
  },
  methods: {
    reload() {
      this.isRouterAlive = false
      this.$nextTick(function() {
        this.isRouterAlive = true
      })
    }
  }
}
</script>
<style>
#nprogress .bar { background: #b4c9fe !important;}
 .tree-container{
    padding:0;
  }
  .el-container{
    height:100%;
}
#fmap canvas{
  width: 100% !important;
  height: 100% !important;
}
#fmap .fm-control-groups-layer{
  background: url('../src/assets/fengmap/layer.png') no-repeat center center;
  text-indent: -999em;
}
  path { fill: inherit !important }
  #app .sidebar-container .is-active.is-opened .el-submenu__title,#app .sidebar-container .is-active.is-opened .el-submenu__title i,#app .sidebar-container .is-active .el-submenu__title,#app .sidebar-container .is-active .el-submenu__title i,.el-menu-item.is-active{
    color: #2F71FF !important;
  }
  #app .sidebar-container .el-submenu .el-submenu__title{
  border-radius: 0px 28px 28px 0px;
  }
  #app .sidebar-container .is-active.is-opened .el-submenu__title,#app .sidebar-container .is-active .el-submenu__title{
    background: #DAE4FF !important;
  }
  .distpicker-address-wrapper select{
      width: 90px;
      padding: 0 !important;
      height: 36px !important;
      line-height: 36px !important;
      font-size: 14px !important;
  }
  .el-table .cell .dotDot::after{
    content:'...';
    display:inline-block;
    vertical-align:bottom;
    overflow:hidden;
    width:15px;
    animation:dotDotDoting 2s infinite step-start;
  }
 @keyframes dotDotDoting{
  0%
  {
    width:0px;
    margin-right:15px;
  }

  25%
  {
    width:5px;
    margin-right:15px;
  }

  50%
  {
    width:8px;
    margin-right:10px;
  }

  75%
  {
    width:10px;
    margin-right:5px;
  }

  100%
  {
    width:15px;
    margin-right:0;
  }
}
  .drawerbox .el-dialog{
    width: 570px !important;
  }
  @media(max-width:750px){
    .diaboxM-Main .el-dialog{
     width: 90% !important;
   }
   .el-button{
     margin-bottom: 10px;
   }
   .el-select{
     margin-bottom: 20px;
   }
   .radTypeBTab .el-radio-group{
     width: 100%;
   }
   .radTypeBTab .el-radio-button{
     width: 25%;
   }
  .radTypeBTab .el-radio-button__inner{
      width: 100%;
      padding: 10px 0;
      text-align: center;
  }
  .statTab .el-radio-button__inner{
    width: 100%;
    padding: 10px 0;
    text-align: center;
    border-left: 1px solid #DCDFE6;
    border-radius: 4px !important;
    border-top: 0;
  }
  .statTab .el-radio-button:first-child .el-radio-button__inner{
    border-top: 1px solid #DCDFE6;
  }
  .app-container{
    padding: 15px;
    height: auto !important;
  }
  .distpicker-address-wrapper select{
      width: 90px;
      padding: 0 !important;
      height: 36px !important;
      line-height: 36px !important;
      font-size: 14px !important;
  }
  .el-pagination .el-pagination__jump{
        margin-left: 0;
        margin-top: 10px;
    }
    .repBox canvas{
      width: 100% !important;
    }
    .el-dialog__wrapper{
      margin-top: 10vh !important;
      align-items: flex-start !important;
    }
  }
</style>
