<template>
  <div class="app-container">
    <div class="app-container-hd" v-if="title">
      <div class="app-container-hd__title">{{ title }}</div>
    </div>
    <div class="app-container-bd">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'AppContainer',
  props: { title: { type: String } }
}
</script>

<style lang="scss">
.app-container {
  height: 100%;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-sizing: border-box;
}
.app-container-hd {
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
}
.app-container-hd__title {
  font-size: 18px;
  line-height: 1;
}
.app-container-bd {
}
</style>
