<template>
  <section class="app-main">
    <div class="app-main-inner">
      <div class="app-main-header">
        <app-breadcrumb v-if="hasBreadcrumb"></app-breadcrumb>
      </div>
      <div class="app-main-container">
        <router-view></router-view>
      </div>
    </div>
  </section>
</template>

<script>
import AppBreadcrumb from './Breadcrumb.vue'
export default {
  name: 'AppMain',
  props: { hasBreadcrumb: { type: Boolean, default: true } },
  components: { AppBreadcrumb }
}
</script>

<style>
.app-main {
  position: relative;
  flex: 1;
  padding: 20px;
  overflow: hidden;
}
.app-main-inner {
  margin: 0 auto;
}
.app-main-container::after {
  content: '';
  display: table;
  clear: both;
}
.el-form--label-top .el-form-item__label {
  padding-bottom: 0;
}
</style>
