<template>
  <div class="card-wrap">
    <div class="header">
      <div class="h-c-wrap">
        <slot name="title"></slot>
      </div>
    </div>
    <div class="content">
      <slot name="content" class="slot"></slot>
    </div>
  </div>
</template>
<script>

export default {
  name: 'CardWrap',
  data() {
    return {}
  },
  watch: {},
  created() {
  },
  methods: {}
}
</script>
<style scoped lang="scss">
.card-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  //border: 1px solid teal;

  .header {
    height: 4vh;
    width: 100%;
    flex-shrink: 0;
    background-image: url("/static/images/biaoti_short@2x.png");
    background-repeat: no-repeat;
    background-size: auto 2vw;
    background-position: left bottom;
    font-size: 1vw;
    color: white;
    padding-left: 2vw;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    & > .h-c-wrap {
      line-height: 1;
      cursor: pointer;
    }
  }

  .content {
    flex-grow: 1;
    width: 100%;

    & > div {
      height: 100%;
    }
  }
}
</style>
