<template>
  <section class="app-main">
    <transition name="fade-transform" mode="out-in" class="">
      <router-view :key="key" class="dk-content" />
    </transition>
  </section>
</template>

<script>

export default {
  name: 'DkAppMain',
  data() {
    return {
      levelList: null,
      title: ''
    }
  },
  computed: {
    key() {
      return this.$route.path
    }
  },
  mounted() {

  }
}
</script>

<style scoped>
.app-main {
  /*50 = navbar  */
  min-height: calc(100vh - 50px);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.fixed-header + .app-main {
  padding-top: 50px;
}
</style>

<style lang="scss" scoped>
.app-container-title {
  background: #fff;
  width: 100%;
  height: 60px;
  line-height: 60px;
  padding: 0 30px;
  margin: 10px 0;
  font-size: 20px;
  font-weight: 500;
}

.dk-content {
  min-height: calc(100vh - 110px);
}

.dk-footer {
  background: #fff;
  height: 40px;
  text-align: center;
  line-height: 40px;
  color: #999
}

// fix css style bug in open el-dialog
.el-popup-parent--hidden {
  .fixed-header {
    //padding-right: 15px;
  }
}
</style>
