<template>
  <div class="msg-card">
    <div class="msg-card-title" :class="[{ long: long }, {}]" v-if="!noHeader">
      <div class="text">
        <!-- <div class="doub-three l"></div>
        <div class="doub-three r"></div> -->
        <!-- <div class="right-text"></div> -->
        {{ title }}
        <!-- <span> / {{ subhead }}</span> -->
      </div>
    </div>
    <div
      :class="[
        noHeader ? 'msg-card-content-noHeader' : 'msg-card-content',
        'content',
      ]"
    >
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "msg-card",
  props: {
    long: Boolean,
    title: String,
    subhead: String,
    noHeader: Boolean,
  },
  computed: {},
};
</script>

<style lang="less" scoped>
/*滚动条样式：谷歌浏览器下*/
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: #2e5e99;
}

/*滚动条的轨道*/
::-webkit-scrollbar-track {
  background-color: #0f2645;
}

/*滚动条的滑块按钮*/
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #2e5e99;
}

/*滚动条的上下两端的按钮*/
::-webkit-scrollbar-button {
  height: 0;
}
.text{
  padding: 4px 0 4px 40px;
  position: relative;
  display: flex;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
  color: white;
}
.right-text{
  margin-left: 25px;
}
.msg-card {
  width: 100%;
  height: 100%;
}
.msg-card-title {
  height: 45px;
  font-weight: bold;
  line-height: 38px;
  padding-left: 6px;
  width: 100%;
  text-align: left;
  background-image: url('../../assets/images/holo/msgCardHead.png');
  background-size: 100% 100%;
}
.long{
  background-image: url('../../assets/images/holo/bottomCartHead.png');
}
.content {
  overflow-y: hidden;
  padding: 12px 10px;
  //background-image: url('../../assets/images/holo/border.png');
  background-size: 100% 100%;
  //margin: 10px 0 15px 0;
}
.msg-card-content {
  height: calc(100% - 45px);
}
.msg-card-content-noHeader {
  height: 100%;
}
</style>
