<template>
  <div class="overview-normal-box-wrapper"
    :style="{ width: width ? width : '1064px', height: height ? height : '460px' }">
    <div class="overview-normal-box-header">
      <div class="header-left">
        <div class="header-icon">
          <slot name="header-icon"></slot>
        </div>
        <div class="header-title">{{ title }}</div>
      </div>

      <div class="header-right">
        <slot name="header-right"></slot>
      </div>
    </div>
    <div class="wrapper-main">
      <slot></slot>
    </div>
  </div>
</template>

<script setup>
import { ref, computed } from 'vue'

const props = defineProps({
  title: {
    type: String,
    default: ''
  },
  width: {
    type: String,
    default: ''
  },
  height: {
    type: String,
    default: ''
  }
})


</script>

<style lang="scss" scoped>
.overview-normal-box-wrapper {
  border: 1px solid rgba(234, 236, 238, 1);
  border-radius: 10px;
  box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1);
  background: rgba(255, 255, 255, 1);
  position: relative;

  .overview-normal-box-header {
    height: 48px;
    border-bottom: 1px solid rgba(240, 242, 244, 1);
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    .header-left {
      display: flex;

      .header-icon {
        width: 24px;
        height: 24px;
        margin-top: 12px;
        margin-left: 20px;
      }

      .header-title {
        margin-left: 16px;
        height: 48px;
        color: var(--color-main-active);
        font-family: Source Han Sans CN;
        font-size: 20px;
        font-weight: 700;
        line-height: 48px;
        text-align: center;
      }
    }

    .header-right {
      height: 48px;
      margin-right: 28px;
    }
  }

  .wrapper-main {
    height: calc(100% - 48px);
    overflow: hidden;
  }
}
</style>
