FullWidthLayout.vue 1.17 KB
<template>
  <div :class="isNewWindowOpenPage ? 'full_wrap_layout' : ''">
    <!-- <v-breadcrumb>
			<slot name="breadcrumb"></slot>
		</v-breadcrumb> -->
    <div class="main-wrap full-width">
      <slot name="main"></slot>
    </div>
  </div>
</template>
<script>
// import vBreadcrumb from 'components/Breadcrumb.vue'

export default {
  data () {
    return {
      isNewWindowOpenPage: false
    }
  },
  components: {
    // vBreadcrumb
  },
  created() {
    if(window.opener) this.isNewWindowOpenPage = true
  }
};
</script>
<style lang="scss">
h1,
h2,
h3,
h4,
h5 {
  margin: 0px;
}
.main-wrap.full-width {
  position: fixed;
  width: calc(100% - 200px);
  height: calc(100% - 60px);
  top: 60px;
  left: 200px;
  background: #fff;
  padding: 0;
}
.ibox {
  background-color: #fff;
  border-top: 2px solid #e7eaec;
  padding: 10px;
  margin-bottom: 20px;
  .ibox-title {
    padding-bottom: 10px;
  }
  .ibox-content {
    padding: 20px 20px 0px;
    margin: 0px -10px;
    border-top: 1px solid #e7eaec;
  }
  .count {
    font-size: 20px;
  }
}
.full_wrap_layout {
  .full-width {
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}
</style>