<template>
  <div class="card">
    <div class="card-hd">
      <h3 class="card-hd__title">{{ title }}</h3>
      <div class="card-hd__aside">
        <slot name="aside"></slot>
      </div>
    </div>
    <div class="card-bd">
      <slot></slot>
    </div>
  </div>
</template>

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

<style lang="scss">
.card-hd {
  display: flex;
  justify-content: space-between;
}
.card-hd__title {
  margin: 0;
  padding-bottom: 0.1rem;
  font-size: 0.3rem;
  font-weight: bold;
  line-height: 1;
  color: #333;
  border-bottom: 0.06rem solid #c62245;
}
.card-bd {
  padding: 0.2rem 0;
}
</style>
