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

<script>
export default {
  props: { title: String }
}
</script>

<style lang="scss">
.card {
  margin: 0.2rem 0.15rem;
  // padding: 0 0.21rem 0 0.21rem;
}
.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}
.card-hd__title {
  flex: 1;
  border-left: 0.03rem solid #aa1941;
  padding-left: 0.05rem;
  font-size: 0.17rem;
  font-weight: bold;
  line-height: 1;
}
.card-hd__aside {
  font-size: 0.1rem;
  color: #9b9b9b;
}
</style>
