<template>
  <div class="h-card">
    <div class="title">{{ title }}</div>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>

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

<style lang="less" scoped>
.h-card {
  width: 100%;
  height: 100%;
  .title {
    height: 34px;
    line-height: 28px;
    text-align: center;
    font-size: 18px;
    color: #ffffff;
    background-image: url('../assets/images/common/bg-card.png');
    background-size: 100% 100%;
  }
  .content {
    height: calc(100% - 34px);
  }
}
</style>
