<template>
  <div class="panel">
    <div class="panel-title">{{title}}</div>
    <div class="panel-body">
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'Panel',
  props: ['title'],
  data() {
    return {}
  },
}
</script>
<style lang='scss' scoped>
.panel {
  display: flex;
  flex-direction: column;
  .panel-title {
    background: #f2f2f2;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
  }
  .panel-body {
    flex: 1;
    background: #fff;
  }
}
</style>
