<template>
  <div class="card-wrap">
    <div class="header">
      <div class="h-c-wrap">
        <slot name="title"/>
      </div>
    </div>
    <div class="content">
      <slot name="content" class="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%;
    }
  }
}

/*控制整个滚动条*/

::-webkit-scrollbar {

  background-color: transparent;

  width: 8px;

  height: 8px;

  background-clip: padding-box;

}

/*滚动条两端方向按钮*/

::-webkit-scrollbar-button {

  height: 0px;

  width: 0px;

}

/*滚动条中间滑动部分*/

::-webkit-scrollbar-thumb {

  background-color: #dbdbdb;

  border-radius: 4px;

}

/*滚动条右下角区域*/

::-webkit-scrollbar-corner {

  background-color: transparent;

}
</style>
